-
Notifications
You must be signed in to change notification settings - Fork 0
/
RzChromaSDKTypes.h
614 lines (551 loc) · 25.7 KB
/
RzChromaSDKTypes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
//! \file RzChromaSDKTypes.h
//! \brief Data types.
#ifndef _RZCHROMASDKTYPES_H_
#define _RZCHROMASDKTYPES_H_
#pragma once
typedef LONG RZRESULT; //!< Return result.
typedef GUID RZEFFECTID; //!< Effect Id.
typedef GUID RZDEVICEID; //!< Device Id.
typedef unsigned int RZDURATION; //!< Milliseconds.
typedef size_t RZSIZE; //!< Size.
typedef void* PRZPARAM; //!< Context sensitive pointer.
typedef DWORD RZID; //!< Generic data type for Identifier.
typedef DWORD RZCOLOR; //!< Color data. 1st byte = Red; 2nd byte = Green; 3rd byte = Blue; 4th byte = Alpha (if applicable)
namespace ChromaSDK
{
//! Event notification Window message
const UINT WM_CHROMA_EVENT = WM_APP+0x2000;
//! Chroma generic effects. Note: Not all devices supported the listed effects.
typedef enum EFFECT_TYPE
{
CHROMA_NONE = 0, //!< No effect.
CHROMA_WAVE, //!< Wave effect.
CHROMA_SPECTRUMCYCLING, //!< Spectrum cycling effect.
CHROMA_BREATHING, //!< Breathing effect.
CHROMA_BLINKING, //!< Blinking effect.
CHROMA_REACTIVE, //!< Reactive effect.
CHROMA_STATIC, //!< Static effect.
CHROMA_CUSTOM, //!< Custom effect. For mice, please see Mouse::CHROMA_CUSTOM2.
CHROMA_INVALID //!< Invalid effect.
} EFFECT_TYPE;
//! Device info.
typedef struct DEVICE_INFO_TYPE
{
//! Device types.
enum DeviceType
{
DEVICE_KEYBOARD = 1, //!< Keyboard device.
DEVICE_MOUSE = 2, //!< Mouse device.
DEVICE_HEADSET = 3, //!< Headset device.
DEVICE_MOUSEPAD = 4, //!< Mousepad device.
DEVICE_KEYPAD = 5 //!< Keypad device.
} DeviceType;
BOOL Connected; //!< Device is connected
} DEVICE_INFO_TYPE;
namespace Keyboard
{
//! Definitions of keys.
typedef enum RZKEY
{
RZKEY_ESC = 0x0001, /*!< Esc */
RZKEY_F1 = 0x0003, /*!< F1 */
RZKEY_F2 = 0x0004, /*!< F2 */
RZKEY_F3 = 0x0005, /*!< F3 */
RZKEY_F4 = 0x0006, /*!< F4 */
RZKEY_F5 = 0x0007, /*!< F5 */
RZKEY_F6 = 0x0008, /*!< F6 */
RZKEY_F7 = 0x0009, /*!< F7 */
RZKEY_F8 = 0x000A, /*!< F8 */
RZKEY_F9 = 0x000B, /*!< F9 */
RZKEY_F10 = 0x000C, /*!< F10 */
RZKEY_F11 = 0x000D, /*!< F11 */
RZKEY_F12 = 0x000E, /*!< F12 */
RZKEY_1 = 0x0102, /*!< 1 */
RZKEY_2 = 0x0103, /*!< 2 */
RZKEY_3 = 0x0104, /*!< 3 */
RZKEY_4 = 0x0105, /*!< 4 */
RZKEY_5 = 0x0106, /*!< 5 */
RZKEY_6 = 0x0107, /*!< 6 */
RZKEY_7 = 0x0108, /*!< 7 */
RZKEY_8 = 0x0109, /*!< 8 */
RZKEY_9 = 0x010A, /*!< 9 */
RZKEY_0 = 0x010B, /*!< 0 */
RZKEY_A = 0x0302, /*!< A */
RZKEY_B = 0x0407, /*!< B */
RZKEY_C = 0x0405, /*!< C */
RZKEY_D = 0x0304, /*!< D */
RZKEY_E = 0x0204, /*!< E */
RZKEY_F = 0x0305, /*!< F */
RZKEY_G = 0x0306, /*!< G */
RZKEY_H = 0x0307, /*!< H */
RZKEY_I = 0x0209, /*!< I */
RZKEY_J = 0x0308, /*!< J */
RZKEY_K = 0x0309, /*!< K */
RZKEY_L = 0x030A, /*!< L */
RZKEY_M = 0x0409, /*!< M */
RZKEY_N = 0x0408, /*!< N */
RZKEY_O = 0x020A, /*!< O */
RZKEY_P = 0x020B, /*!< P */
RZKEY_Q = 0x0202, /*!< Q */
RZKEY_R = 0x0205, /*!< R */
RZKEY_S = 0x0303, /*!< S */
RZKEY_T = 0x0206, /*!< T */
RZKEY_U = 0x0208, /*!< U */
RZKEY_V = 0x0406, /*!< V */
RZKEY_W = 0x0203, /*!< W */
RZKEY_X = 0x0404, /*!< X */
RZKEY_Y = 0x0207, /*!< Y */
RZKEY_Z = 0x0403, /*!< Z */
RZKEY_NUMLOCK = 0x0112, /*!< Numlock */
RZKEY_NUMPAD0 = 0x0513, /*!< Numpad 0 */
RZKEY_NUMPAD1 = 0x0412, /*!< Numpad 1 */
RZKEY_NUMPAD2 = 0x0413, /*!< Numpad 2 */
RZKEY_NUMPAD3 = 0x0414, /*!< Numpad 3 */
RZKEY_NUMPAD4 = 0x0312, /*!< Numpad 4 */
RZKEY_NUMPAD5 = 0x0313, /*!< Numpad 5 */
RZKEY_NUMPAD6 = 0x0314, /*!< Numpad 6 */
RZKEY_NUMPAD7 = 0x0212, /*!< Numpad 7 */
RZKEY_NUMPAD8 = 0x0213, /*!< Numpad 8 */
RZKEY_NUMPAD9 = 0x0214, /*!< Numpad 9*/
RZKEY_NUMPAD_DIVIDE = 0x0113, /*!< Divide */
RZKEY_NUMPAD_MULTIPLY = 0x0114, /*!< Multiply */
RZKEY_NUMPAD_SUBTRACT = 0x0115, /*!< Subtract */
RZKEY_NUMPAD_ADD = 0x0215, /*!< Add */
RZKEY_NUMPAD_ENTER = 0x0415, /*!< Enter */
RZKEY_NUMPAD_DECIMAL = 0x0514, /*!< Decimal */
RZKEY_PRINTSCREEN = 0x000F, /*!< Print Screen */
RZKEY_SCROLL = 0x0010, /*!< Scroll Lock */
RZKEY_PAUSE = 0x0011, /*!< Pause */
RZKEY_INSERT = 0x010F, /*!< Insert */
RZKEY_HOME = 0x0110, /*!< Home */
RZKEY_PAGEUP = 0x0111, /*!< Page Up */
RZKEY_DELETE = 0x020f, /*!< Delete */
RZKEY_END = 0x0210, /*!< End */
RZKEY_PAGEDOWN = 0x0211, /*!< Page Down */
RZKEY_UP = 0x0410, /*!< Up */
RZKEY_LEFT = 0x050F, /*!< Left */
RZKEY_DOWN = 0x0510, /*!< Down */
RZKEY_RIGHT = 0x0511, /*!< Right */
RZKEY_TAB = 0x0201, /*!< Tab */
RZKEY_CAPSLOCK = 0x0301, /*!< Caps Lock*/
RZKEY_BACKSPACE = 0x010E, /*!< Backspace */
RZKEY_ENTER = 0x030E, /*!< Enter */
RZKEY_LCTRL = 0x0501, /*!< Left Control*/
RZKEY_LWIN = 0x0502, /*!< Left Window */
RZKEY_LALT = 0x0503, /*!< Left Alt */
RZKEY_SPACE = 0x0507, /*!< Spacebar */
RZKEY_RALT = 0x050B, /*!< Right Alt */
RZKEY_FN = 0x050C, /*!< 'Fn' function key. */
RZKEY_RMENU = 0x050D, /*!< Right Menu */
RZKEY_RCTRL = 0x050E, /*!< Right Control */
RZKEY_LSHIFT = 0x0401, /*!< Left Shift */
RZKEY_RSHIFT = 0x040E, /*!< Right Shift */
RZKEY_MACRO1 = 0x0100, /*!< Macro Key 1*/
RZKEY_MACRO2 = 0x0200, /*!< Macro Key 2*/
RZKEY_MACRO3 = 0x0300, /*!< Macro Key 3 */
RZKEY_MACRO4 = 0x0400, /*!< Macro Key 4*/
RZKEY_MACRO5 = 0x0500, /*!< Macro Key 5 */
RZKEY_OEM_1 = 0x0101, /*!< ~ tilde. 半角/全角 */
RZKEY_OEM_2 = 0x010C, /*!< - minus. */
RZKEY_OEM_3 = 0x010D, /*!< = equal. */
RZKEY_OEM_4 = 0x020C, /*!< [ left sqaure bracket. */
RZKEY_OEM_5 = 0x020D, /*!< ] right square bracket. */
RZKEY_OEM_6 = 0x020E, /*!< \ backslash. */
RZKEY_OEM_7 = 0x030B, /*!< ; semi-colon. */
RZKEY_OEM_8 = 0x030C, /*!< ' apostrophe. */
RZKEY_OEM_9 = 0x040A, /*!< , comma. */
RZKEY_OEM_10 = 0x040B, /*!< . period. */
RZKEY_OEM_11 = 0x040C, /*!< / forward slash. */
RZKEY_EUR_1 = 0x030D, /*!< # */
RZKEY_EUR_2 = 0x0402, /*!< \ */
RZKEY_JPN_1 = 0x0015, /*!< ¥ */
RZKEY_JPN_2 = 0x040D, /*!< / */
RZKEY_JPN_3 = 0x0504, /*!< 無変換 */
RZKEY_JPN_4 = 0x0509, /*!< 変換 */
RZKEY_JPN_5 = 0x050A, /*!< ひらがな/カタカナ */
RZKEY_KOR_1 = 0x0015, /*!< | */
RZKEY_KOR_2 = 0x030D,
RZKEY_KOR_3 = 0x0402,
RZKEY_KOR_4 = 0x040D,
RZKEY_KOR_5 = 0x0504, /*!< 한자 */
RZKEY_KOR_6 = 0x0509, /*!< 한/영 */
RZKEY_KOR_7 = 0x050A,
RZKEY_INVALID = 0xFFFF /*!< Invalid keys. */
} RZKEY;
//! Definition of LEDs.
typedef enum RZLED
{
RZLED_LOGO = 0x0020 /*!< Razer logo */
} RZLED;
//! Maximum number of rows in a keyboard.
const RZSIZE MAX_ROW = 6;
//! Maximum number of columns in a keyboard.
const RZSIZE MAX_COLUMN = 22;
//! Maximum number of keys.
const RZSIZE MAX_KEYS = MAX_ROW * MAX_COLUMN;
//! Maximum number of custom effects.
const RZSIZE MAX_CUSTOM_EFFECTS = MAX_KEYS;
//! Keyboard LED layout.
const COLORREF RZKEY_LAYOUT[MAX_ROW][MAX_COLUMN] = {};
//! Chroma keyboard effect types
typedef enum EFFECT_TYPE
{
CHROMA_NONE = 0, //!< No effect.
CHROMA_BREATHING, //!< Breathing effect.
CHROMA_CUSTOM, //!< Custom effect.
CHROMA_REACTIVE, //!< Reactive effect.
CHROMA_STATIC, //!< Static effect.
CHROMA_SPECTRUMCYCLING, //!< Spectrum cycling effect.
CHROMA_WAVE, //!< Wave effect.
CHROMA_INVALID //!< Invalid effect.
} EFFECT_TYPE;
// Chroma keyboard effects
//! Breathing effect type
typedef struct BREATHING_EFFECT_TYPE
{
//! Breathing effects.
enum Type
{
TWO_COLORS = 1, //!< 2 colors
RANDOM_COLORS, //!< Random colors
INVALID
} Type;
COLORREF Color1; //!< First color.
COLORREF Color2; //!< Second color.
} BREATHING_EFFECT_TYPE;
//! Custom effect using a matrix type.
typedef struct CUSTOM_EFFECT_TYPE
{
COLORREF Color[MAX_ROW][MAX_COLUMN]; //!< Grid layout. 6 rows by 22 columns.
} CUSTOM_EFFECT_TYPE;
//! Reactive effect type
typedef struct REACTIVE_EFFECT_TYPE
{
//! Duration of the effect.
enum Duration
{
DURATION_NONE=0, //!< No duration.
DURATION_SHORT, //!< Short duration.
DURATION_MEDIUM, //!< Medium duration.
DURATION_LONG, //!< Long duration.
DURATION_INVALID //!< Invalid duration.
} Duration; //!< The time taken for the effect to fade away.
COLORREF Color; //!< Color of the effect
} REACTIVE_EFFECT_TYPE;
//! Static effect type
typedef struct STATIC_EFFECT_TYPE
{
COLORREF Color; //!< Color of the effect
} STATIC_EFFECT_TYPE;
//! Wave effect type
typedef struct WAVE_EFFECT_TYPE
{
//! Direction of the wave effect.
enum Direction
{
DIRECTION_NONE=0, //!< No direction.
DIRECTION_LEFT_TO_RIGHT, //!< Left to right.
DIRECTION_RIGHT_TO_LEFT, //!< Right to left.
DIRECTION_INVALID //!< Invalid direction.
} Direction; //!< Direction of the wave.
} WAVE_EFFECT_TYPE;
}
namespace Mouse
{
//! Maximum number of custom LEDs (old definition to maintain backward compatibility).
const RZSIZE MAX_LEDS = 30;
//! Mice LED layout (old definition to maintain backward compatibility).
const RZCOLOR RZLED_LAYOUT[MAX_LEDS] = {};
//! Maximum number of rows of the virtual grid.
const RZSIZE MAX_ROW = 9;
//! Maximum number of columns of the virtual grid.
const RZSIZE MAX_COLUMN = 7;
//! Maximum number of LEDs of the virtual grid.
const RZSIZE MAX_LEDS2 = MAX_ROW * MAX_COLUMN;
//! Mice LED virtual grid layout.
const RZCOLOR RZLED_LAYOUT2[MAX_ROW][MAX_COLUMN] = {};
//! Mouse LED Id defintion (old definition to maintain backward compatibility).
typedef enum RZLED
{
RZLED_NONE = 0, //!< No LED.
RZLED_SCROLLWHEEL = 1, //!< Scroll Wheel LED.
RZLED_LOGO = 2, //!< Logo LED.
RZLED_BACKLIGHT = 3, //!< Backlight or numpad.
RZLED_SIDE_STRIP1 = 4, //!< Side strip LED 1. (For Mamba TE, starts from top left hand)
RZLED_SIDE_STRIP2 = 5, //!< Side strip LED 2. (For Mamba TE)
RZLED_SIDE_STRIP3 = 6, //!< Side strip LED 3. (For Mamba TE)
RZLED_SIDE_STRIP4 = 7, //!< Side strip LED 4. (For Mamba TE)
RZLED_SIDE_STRIP5 = 8, //!< Side strip LED 5. (For Mamba TE)
RZLED_SIDE_STRIP6 = 9, //!< Side strip LED 6. (For Mamba TE)
RZLED_SIDE_STRIP7 = 10, //!< Side strip LED 7. (For Mamba TE)
RZLED_SIDE_STRIP8 = 11, //!< Side strip LED 8. (For Mamba TE)
RZLED_SIDE_STRIP9 = 12, //!< Side strip LED 9. (For Mamba TE)
RZLED_SIDE_STRIP10 = 13, //!< Side strip LED 10. (For Mamba TE)
RZLED_SIDE_STRIP11 = 14, //!< Side strip LED 11. (For Mamba TE)
RZLED_SIDE_STRIP12 = 15, //!< Side strip LED 12. (For Mamba TE)
RZLED_SIDE_STRIP13 = 16, //!< Side strip LED 13. (For Mamba TE)
RZLED_SIDE_STRIP14 = 17, //!< Side strip LED 14. (For Mamba TE)
RZLED_ALL = 0xFFFF
} RZLED;
//! Mouse LED Id defintion for the virtual grid.
typedef enum RZLED2
{
RZLED2_SCROLLWHEEL = 0x0203, //!< Scroll Wheel LED.
RZLED2_LOGO = 0x0703, //!< Logo LED.
RZLED2_BACKLIGHT = 0x0403, //!< Backlight LED.
RZLED2_LEFT_SIDE1 = 0x0100, //!< Left LED 1.
RZLED2_LEFT_SIDE2 = 0x0200, //!< Left LED 2.
RZLED2_LEFT_SIDE3 = 0x0300, //!< Left LED 3.
RZLED2_LEFT_SIDE4 = 0x0400, //!< Left LED 4.
RZLED2_LEFT_SIDE5 = 0x0500, //!< Left LED 5.
RZLED2_LEFT_SIDE6 = 0x0600, //!< Left LED 6.
RZLED2_LEFT_SIDE7 = 0x0700, //!< Left LED 7.
RZLED2_BOTTOM1 = 0x0801, //!< Bottom LED 1.
RZLED2_BOTTOM2 = 0x0802, //!< Bottom LED 2.
RZLED2_BOTTOM3 = 0x0803, //!< Bottom LED 3.
RZLED2_BOTTOM4 = 0x0804, //!< Bottom LED 4.
RZLED2_BOTTOM5 = 0x0805, //!< Bottom LED 5.
RZLED2_RIGHT_SIDE1 = 0x0106, //!< Right LED 1.
RZLED2_RIGHT_SIDE2 = 0x0206, //!< Right LED 2.
RZLED2_RIGHT_SIDE3 = 0x0306, //!< Right LED 3.
RZLED2_RIGHT_SIDE4 = 0x0406, //!< Right LED 4.
RZLED2_RIGHT_SIDE5 = 0x0506, //!< Right LED 5.
RZLED2_RIGHT_SIDE6 = 0x0606, //!< Right LED 6.
RZLED2_RIGHT_SIDE7 = 0x0706 //!< Right LED 7.
} RZLED2;
//! Chroma mouse effect types
typedef enum EFFECT_TYPE
{
CHROMA_NONE = 0, //!< No effect.
CHROMA_BLINKING, //!< Blinking effect.
CHROMA_BREATHING, //!< Breathing effect.
CHROMA_CUSTOM, //!< Custom effect (old definition to maintain backward compatibility).
CHROMA_REACTIVE, //!< Reactive effect.
CHROMA_SPECTRUMCYCLING, //!< Spectrum cycling effect.
CHROMA_STATIC, //!< Static effect.
CHROMA_WAVE, //!< Wave effect.
CHROMA_CUSTOM2, //!< Custom effects using a virtual grid.
CHROMA_INVALID //!< Invalid effect.
} EFFECT_TYPE;
//! Static effect type
typedef struct STATIC_EFFECT_TYPE
{
RZLED LEDId; //!< LED Id
COLORREF Color; //!< Color of the effect.
} STATIC_EFFECT_TYPE;
//! Blinking effect type.
typedef struct BLINKING_EFFECT_TYPE
{
RZLED LEDId; //!< LED Id
COLORREF Color; //!< Color.
} BLINKING_EFFECT_TYPE;
//! Breathing effect.
typedef struct BREATHING_EFFECT_TYPE
{
RZLED LEDId; //!< LED Id
//! Breathing type.
enum Type
{
ONE_COLOR = 1, //!< 1 color (Only fill Color1).
TWO_COLORS, //!< 2 colors.
RANDOM_COLORS //!< Random colors
} Type;
COLORREF Color1; //!< First color.
COLORREF Color2; //!< Second color.
} BREATHING_EFFECT_TYPE;
//! Custom effect.
typedef struct CUSTOM_EFFECT_TYPE
{
RZCOLOR Color[MAX_LEDS]; //!< Array of colors.
} CUSTOM_EFFECT_TYPE;
//! \brief Custom effect using virtual grid.
//!
//! \detailed Indexes of the LED are defined in RZLED2.i.e. Row = HIBYTE(RZLED2_SCROLLWHEEL), Column = LOBYTE(RZLED2_SCROLLWHEEL)
typedef struct CUSTOM_EFFECT_TYPE2
{
RZCOLOR Color[MAX_ROW][MAX_COLUMN]; //!< Array of colors.
} CUSTOM_EFFECT_TYPE2;
//! Reactive effect.
typedef struct REACTIVE_EFFECT_TYPE
{
RZLED LEDId; //!< LED Id
//! Duration of the effect.
enum Duration
{
DURATION_NONE=0, //!< No duration.
DURATION_SHORT, //!< Short duration.
DURATION_MEDIUM, //!< Medium duration.
DURATION_LONG //!< Long duration.
} Duration;
RZCOLOR Color; //!< Color of the effect.
} REACTIVE_EFFECT_TYPE;
//! No effect.
typedef struct NO_EFFECT_TYPE
{
RZLED LEDId; //!< LED Id
} NO_EFFECT_TYPE;
//! Spectrum cycling.
typedef struct SPECTRUMCYCLING_EFFECT_TYPE
{
RZLED LEDId; //!< LED id.
} SPECTRUMCYCLING_EFFECT_TYPE;
//! Wave effect.
typedef struct WAVE_EFFECT_TYPE
{
//! Direction of the wave effect.
enum Direction
{
FRONT_TO_BACK, //!< Front to back
BACK_TO_FRONT //!< Back to front
} Direction;
} WAVE_EFFECT_TYPE;
}
namespace Headset
{
//! Chroma headset effect types
typedef enum EFFECT_TYPE
{
CHROMA_NONE = 0, //!< No effect.
CHROMA_STATIC, //!< Static effect.
CHROMA_BREATHING, //!< Breathing effect.
CHROMA_SPECTRUMCYCLING, //!< Spectrum cycling effect.
CHROMA_INVALID //!< Invalid effect.
} EFFECT_TYPE;
//! Static effect type
typedef struct STATIC_EFFECT_TYPE
{
COLORREF Color; //!< Color of the effect.
} STATIC_EFFECT_TYPE;
//! Breathing effect type.
typedef struct BREATHING_EFFECT_TYPE
{
COLORREF Color; //!< Color.
} BREATHING_EFFECT_TYPE;
}
namespace Mousepad
{
//! Maximum number of LEDs
const RZSIZE MAX_LEDS = 15;
//! Chroma mousepad effect types
typedef enum EFFECT_TYPE
{
CHROMA_NONE = 0, //!< No effect.
CHROMA_BREATHING, //!< Breathing effect.
CHROMA_CUSTOM, //!< Custom effect.
CHROMA_SPECTRUMCYCLING, //!< Spectrum cycling effect.
CHROMA_STATIC, //!< Static effect.
CHROMA_WAVE, //!< Wave effect.
CHROMA_INVALID //!< Invalid effect.
} EFFECT_TYPE;
// Chroma mousepad effects
//! Breathing effect type.
typedef struct BREATHING_EFFECT_TYPE
{
//! Breathing effects.
enum Type
{
TWO_COLORS = 1, //!< 2 colors
RANDOM_COLORS, //!< Random colors
INVALID
} Type;
COLORREF Color1; //!< First color.
COLORREF Color2; //!< Second color.
} BREATHING_EFFECT_TYPE;
//! Custom effect type.
typedef struct CUSTOM_EFFECT_TYPE
{
RZCOLOR Color[MAX_LEDS]; //!< An array of colors for all the sides of the mousepad. First LED starts from top-right corner.
//!< LED 0-4 right side, 5-9 bottom side, 10-14 left side.
} CUSTOM_EFFECT_TYPE;
//! Static effect type
typedef struct STATIC_EFFECT_TYPE
{
COLORREF Color; //!< Color of the effect
} STATIC_EFFECT_TYPE;
//! Wave effect type
typedef struct WAVE_EFFECT_TYPE
{
//! Direction of the wave effect.
enum Direction
{
DIRECTION_NONE=0, //!< No direction.
DIRECTION_LEFT_TO_RIGHT, //!< Left to right.
DIRECTION_RIGHT_TO_LEFT, //!< Right to left.
DIRECTION_INVALID //!< Invalid direction.
} Direction; //!< Direction of the wave.
} WAVE_EFFECT_TYPE;
}
namespace Keypad
{
//! Maximum number of rows.
const RZSIZE MAX_ROW = 4;
//! Maximum number of columns.
const RZSIZE MAX_COLUMN = 5;
//! Total number of keys.
const RZSIZE MAX_KEYS = MAX_ROW * MAX_COLUMN;
//! Chroma keypad effect types
typedef enum EFFECT_TYPE
{
CHROMA_NONE = 0, //!< No effect.
CHROMA_BREATHING, //!< Breathing effect.
CHROMA_CUSTOM, //!< Custom effect.
CHROMA_REACTIVE, //!< Reactive effect.
CHROMA_SPECTRUMCYCLING, //!< Spectrum cycling effect.
CHROMA_STATIC, //!< Static effect.
CHROMA_WAVE, //!< Wave effect.
CHROMA_INVALID //!< Invalid effect.
} EFFECT_TYPE;
// Chroma keypad effects
//! Breathing effect type.
typedef struct BREATHING_EFFECT_TYPE
{
//! Breathing effects.
enum Type
{
TWO_COLORS = 1, //!< 2 colors
RANDOM_COLORS, //!< Random colors
INVALID
} Type;
COLORREF Color1; //!< First color.
COLORREF Color2; //!< Second color.
} BREATHING_EFFECT_TYPE;
//! Custom effect type
typedef struct CUSTOM_EFFECT_TYPE
{
RZCOLOR Color[MAX_ROW][MAX_COLUMN]; //!< Custom effect.
//!< For Razer Tartarus Chroma only Color[0] is valid. Use index '0' to change the keypad color.
} CUSTOM_EFFECT_TYPE;
//! Reactive effect type
typedef struct REACTIVE_EFFECT_TYPE
{
//! Duration of the effect.
enum Duration
{
DURATION_NONE=0, //!< No duration.
DURATION_SHORT, //!< Short duration.
DURATION_MEDIUM, //!< Medium duration.
DURATION_LONG, //!< Long duration.
DURATION_INVALID //!< Invalid duration.
} Duration; //!< The time taken for the effect to fade away.
COLORREF Color; //!< Color of the effect
} REACTIVE_EFFECT_TYPE;
//! Static effect type
typedef struct STATIC_EFFECT_TYPE
{
RZCOLOR Color; //!< Color of the effect.
} STATIC_EFFECT_TYPE;
//! Wave effect type
typedef struct WAVE_EFFECT_TYPE
{
//! Direction of the wave effect.
enum Direction
{
DIRECTION_NONE=0, //!< No direction.
DIRECTION_LEFT_TO_RIGHT, //!< Left to right.
DIRECTION_RIGHT_TO_LEFT, //!< Right to left.
DIRECTION_INVALID //!< Invalid direction.
} Direction; //!< Direction of the wave.
} WAVE_EFFECT_TYPE;
}
}
#endif