@@ -22,6 +22,21 @@ static unsigned int full_matrix_map[6][21] =
22
22
{ 76 , 77 , 78 , NA, NA, NA, 79 , NA, NA, NA, 80 , 81 , 82 , 83 , 84 , 85 , 86 , 102 , NA, 103 , NA}
23
23
};
24
24
25
+ static unsigned int Z20_right_side_matrix[1 ][9 ] =
26
+ {
27
+ { 116 , 118 , 120 , 122 , 124 , 126 , 128 , 130 , 132 }
28
+ };
29
+
30
+ static unsigned int Z20_left_side_matrix[1 ][9 ] =
31
+ {
32
+ { 115 , 117 , 119 , 121 , 123 , 125 , 127 , 129 , 131 }
33
+ };
34
+
35
+ static unsigned int Z20_macro_matrix[1 ][6 ] =
36
+ {
37
+ {109 , 110 , 111 , 112 , 113 , 114 }
38
+ };
39
+
25
40
static const char *led_names[] =
26
41
{
27
42
KEY_EN_ESCAPE, // 00
@@ -139,6 +154,14 @@ static const char *led_names[] =
139
154
KEY_EN_MEDIA_PLAY_PAUSE,
140
155
KEY_EN_MEDIA_NEXT,
141
156
KEY_EN_MEDIA_MUTE,
157
+ },
158
+ {
159
+ " Key: Feature Button" , " Key: Macro 1" , " Key: Macro 2" , " Key: Macro 3" , " Key: Macro 4" , " Key: Macro 5"
160
+ },
161
+ {
162
+ " Key: Number Pad 1" , " Key: Number Pad 2" , " Key: Number Pad 3" , " Key: Number Pad 4" , " Key: Number Pad 5" , " Key: Number Pad 6" , " Key: Number Pad 7" , " Key: Number Pad 8" , " Key: Number Pad 9" },
163
+ {
164
+ " Key: Number Pad 1" , " Key: Number Pad 2" , " Key: Number Pad 3" , " Key: Number Pad 4" , " Key: Number Pad 5" , " Key: Number Pad 6" , " Key: Number Pad 7" , " Key: Number Pad 8" , " Key: Number Pad 9" },
142
165
};
143
166
144
167
RGBController_EVGAKeyboard::RGBController_EVGAKeyboard (EVGAKeyboardController* controller_ptr)
@@ -355,7 +378,47 @@ void RGBController_EVGAKeyboard::SetupZones()
355
378
KB_zone.matrix_map ->width = 21 ;
356
379
KB_zone.matrix_map ->map = (unsigned int *)&full_matrix_map;
357
380
zones.push_back (KB_zone);
358
-
381
+ if (controller->GetDeviceName () == " EVGA Corporation EVGA Z20 Elite Gaming Keyboard" ){
382
+ zone KB_right_sidelights;
383
+ KB_right_sidelights.name = " Right Side Lights" ;
384
+ KB_right_sidelights.type = 1 ;
385
+ KB_right_sidelights.leds_min = 9 ;
386
+ KB_right_sidelights.leds_max = 9 ;
387
+ KB_right_sidelights.leds_count = 9 ;
388
+ KB_right_sidelights.matrix_map = new matrix_map_type;
389
+
390
+ zone KB_left_sidelights;
391
+ KB_left_sidelights.name = " Left Side Lights" ;
392
+ KB_left_sidelights.type = 1 ;
393
+ KB_left_sidelights.leds_min = 9 ;
394
+ KB_left_sidelights.leds_max = 9 ;
395
+ KB_left_sidelights.leds_count = 9 ;
396
+ KB_left_sidelights.matrix_map = new matrix_map_type;
397
+
398
+ zone KB_macros;
399
+ KB_macros.name = " Macros" ;
400
+ KB_macros.type = 1 ;
401
+ KB_macros.leds_min = 6 ;
402
+ KB_macros.leds_max = 6 ;
403
+ KB_macros.leds_count = 6 ;
404
+ KB_macros.matrix_map = new matrix_map_type;
405
+
406
+ KB_right_sidelights.matrix_map ->height = 1 ;
407
+ KB_right_sidelights.matrix_map ->width = 9 ;
408
+ KB_right_sidelights.matrix_map ->map = (unsigned int *)&Z20_right_side_matrix;
409
+
410
+ KB_left_sidelights.matrix_map ->height = 1 ;
411
+ KB_left_sidelights.matrix_map ->width = 9 ;
412
+ KB_left_sidelights.matrix_map ->map = (unsigned int *)&Z20_right_side_matrix;
413
+
414
+ KB_macros.matrix_map ->height = 1 ;
415
+ KB_macros.matrix_map ->width = 6 ;
416
+ KB_macros.matrix_map ->map = (unsigned int *)&Z20_macro_matrix;
417
+
418
+ zones.push_back (KB_macros);
419
+ zones.push_back (KB_left_sidelights);
420
+ zones.push_back (KB_right_sidelights);
421
+ }
359
422
/* -------------------------------------------------*\
360
423
| Clear any existing color/LED configuration |
361
424
\*-------------------------------------------------*/
0 commit comments