From 47657c3997e08e98a406a81e02a05a683e94d39f Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 1 Apr 2014 21:38:39 +0200 Subject: unifying: fix keyboard LED for HID++ mode --- hw/usb/hid-logitech-dj.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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++) { -- cgit v1.2.1