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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/usb/hid-logitech-dj.c b/hw/usb/hid-logitech-dj.c
index 5eea52fe81..f01a4f312f 100644
--- a/hw/usb/hid-logitech-dj.c
+++ b/hw/usb/hid-logitech-dj.c
@@ -639,6 +639,8 @@ void hidpp_init(USBLtunifyState *s)
r->info.serial = 0x4c4f5354;
r->info.version = (struct firmware_version) { 24, 0, 18, 0, 6 };
- hidpp_init_device(s, 1, DEVTYPE_KEYBOARD);
+ if (s->enable_kbd) {
+ hidpp_init_device(s, 1, DEVTYPE_KEYBOARD);
+ }
hidpp_init_device(s, 2, DEVTYPE_MOUSE);
}