summaryrefslogtreecommitdiff
path: root/hw/usb/hid-logitech-dj.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/hid-logitech-dj.c')
-rw-r--r--hw/usb/hid-logitech-dj.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/usb/hid-logitech-dj.c b/hw/usb/hid-logitech-dj.c
index 403d994457..0ab09f332d 100644
--- a/hw/usb/hid-logitech-dj.c
+++ b/hw/usb/hid-logitech-dj.c
@@ -163,7 +163,12 @@ static void hidpp_process_receiver_report(USBLtunifyState *s, HidppMsg *msg)
/* DJ reports */
switch (msg->dj_s.report_type) {
case 0x0E: /* Keyboard LEDs */
- /* ignored */
+ for (i = 0; i < MAX_DEVICES; i++) {
+ hd = &s->devices[i];
+ if (hd->hid && hd->hid->kind == HID_KEYBOARD) {
+ hid_keyboard_write(hd->hid, msg->dj_s.payload, 1);
+ }
+ }
break;
case 0x80: /* Switch and Keep-Alive */
for (i = 0; i < MAX_DEVICES; i++) {