From bed6803378b4e1eb258f3e5a25eb1be82e7117e5 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 24 Mar 2014 18:21:04 +0100 Subject: unifying: allow keyboard to be disabled with nokbd Used for debugging WinXP. Turns out that even usb-kbd is broken, so it must be the USB stack used by WinXP that is problematic. Signed-off-by: Peter Wu --- hw/usb/hid-logitech-dj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hw/usb/hid-logitech-dj.c') 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); } -- cgit v1.2.1