Skip to content

Commit bc31490

Browse files
Start labeling Corsair mouse LEDs
1 parent fa4d330 commit bc31490

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

RGBController/RGBController_CorsairPeripheral.cpp

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,25 @@ static const char* led_names_k95[] =
494494
"Key: M3",
495495
};
496496

497+
static const char* corsair_mouse_leds[] =
498+
{
499+
"Mouse LED 1",
500+
"Mouse LED 2",
501+
"Mouse LED 3",
502+
"Logo",
503+
"Mouse LED 5",
504+
"Mouse LED 6",
505+
"Mouse LED 7",
506+
"Mouse LED 8",
507+
"Mouse LED 9",
508+
"Mouse LED 10",
509+
"Mouse LED 11",
510+
"Mouse LED 12",
511+
"Mouse LED 13",
512+
"Mouse LED 14",
513+
"Mouse LED 15",
514+
};
515+
497516
RGBController_CorsairPeripheral::RGBController_CorsairPeripheral(CorsairPeripheralController* corsair_ptr)
498517
{
499518
corsair = corsair_ptr;
@@ -624,7 +643,7 @@ void RGBController_CorsairPeripheral::SetupZones()
624643

625644

626645
case DEVICE_TYPE_MOUSE:
627-
new_zone.name = "Mousemat Zone";
646+
new_zone.name = "Mouse Zone";
628647
new_zone.type = ZONE_TYPE_SINGLE;
629648
new_zone.leds_min = 15;
630649
new_zone.leds_max = 15;
@@ -690,6 +709,9 @@ void RGBController_CorsairPeripheral::SetupZones()
690709
break;
691710

692711
case DEVICE_TYPE_MOUSE:
712+
new_led.name = corsair_mouse_leds[led_idx];
713+
break;
714+
693715
case DEVICE_TYPE_MOUSEMAT:
694716
case DEVICE_TYPE_HEADSET_STAND:
695717
new_led.name = "Mousemat LED ";

0 commit comments

Comments
 (0)