History | View | Annotate | Download (13.4 kB)
hid: fix misassignment
The code does not have any effect as is, fix it.
Spotted by clang analyzer:/src/qemu/hw/hid.c:99:13: warning: Value stored to 'x1' is never read x1 = 1;
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
usb/hid: add hid_pointer_activate, use it
HID reorganziation broke the usb tablet in windows xp. The reason isthat xp activates idle before it starts polling, which creates achicken-and-egg issue: We don't call hid_pointer_poll because there areno pending events. We don't get any events because the activation code...
hid: register kbd hander in init()
Register the keyboard event handler in hid's init() instead of its reset()function.
Signed-off-by: Michael Walle <michael@walle.cc>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hid: introduce hid vmstate macros
Add VMSTATE macros to describe a HIDState. Based on usb-hid.c descriptions.
usb-hid: split hid code to hw/hid.[ch]
Almost pure code motion. Unstatic hid interface functions and addthem to the header file. Some renames. Some code style cleanups.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hid: move idle+protocol from usb-hid to hid too.