diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-24 18:21:04 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-24 18:21:04 +0100 |
commit | bed6803378b4e1eb258f3e5a25eb1be82e7117e5 (patch) | |
tree | cc86135437e90b11984a5a8c7aad91cb878707c0 /hw/usb/hid-logitech-dj.c | |
parent | 2382e2c43c3386dab0a44f4cd90a351a91329a5c (diff) | |
download | qemu-bed6803378b4e1eb258f3e5a25eb1be82e7117e5.tar.gz |
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 <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/hid-logitech-dj.c')
-rw-r--r-- | hw/usb/hid-logitech-dj.c | 4 |
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); } |