- Add support for Dell G15 5530 RGB keyboard (RTX 4050)

This commit is contained in:
Dimitri Marques 2024-09-06 10:19:45 -03:00
parent e565120d29
commit bb5d93ddf6
2 changed files with 8 additions and 4 deletions

View file

@ -31,7 +31,8 @@ static const std::map<alienware_platform_id, uint8_t> zone_quirks_table =
{ {
{ 0x0C01, 4 }, // Dell G5 SE 5505 { 0x0C01, 4 }, // Dell G5 SE 5505
{ 0x0A01, 16 }, // Dell G7 15 7500 { 0x0A01, 16 }, // Dell G7 15 7500
{ 0x0E03, 4 } // Dell G15 5511 { 0x0E03, 4 }, // Dell G15 5511
{ 0x0E0A, 4 } // Dell G15 5530
}; };
@ -47,7 +48,8 @@ static const std::map<alienware_platform_id, std::vector<const char*>> zone_name
"Light Bar 4", "Light Bar 5", "Light Bar 6", "Light Bar 4", "Light Bar 5", "Light Bar 6",
"Light Bar 7", "Light Bar 8", "Light Bar 9", "Light Bar 7", "Light Bar 8", "Light Bar 9",
"Light Bar 10", "Light Bar 11", "Light Bar 12" } }, "Light Bar 10", "Light Bar 11", "Light Bar 12" } },
{ 0x0E03, { "Left", "Middle", "Right", "Numpad" } } { 0x0E03, { "Left", "Middle", "Right", "Numpad" } },
{ 0x0E0A, { "Left", "Middle", "Right", "Numpad" } }
}; };
static void SendHIDReport(hid_device *dev, const unsigned char* usb_buf, size_t usb_buf_size) static void SendHIDReport(hid_device *dev, const unsigned char* usb_buf, size_t usb_buf_size)

View file

@ -20,7 +20,8 @@
/*---------------------------------------------------------*\ /*---------------------------------------------------------*\
| Alienware product ID | | Alienware product ID |
\*---------------------------------------------------------*/ \*---------------------------------------------------------*/
#define ALIENWARE_G_SERIES_PID 0x0550 #define ALIENWARE_G_SERIES_PID1 0x0550
#define ALIENWARE_G_SERIES_PID2 0x0551
void DetectAlienwareControllers(hid_device_info* info, const std::string& name) void DetectAlienwareControllers(hid_device_info* info, const std::string& name)
{ {
@ -35,4 +36,5 @@ void DetectAlienwareControllers(hid_device_info* info, const std::string& name)
} }
} }
REGISTER_HID_DETECTOR("Dell G Series LED Controller", DetectAlienwareControllers, ALIENWARE_VID, ALIENWARE_G_SERIES_PID); REGISTER_HID_DETECTOR("Dell G Series LED Controller", DetectAlienwareControllers, ALIENWARE_VID, ALIENWARE_G_SERIES_PID1);
REGISTER_HID_DETECTOR("Dell G Series LED Controller", DetectAlienwareControllers, ALIENWARE_VID, ALIENWARE_G_SERIES_PID2);