summaryrefslogtreecommitdiffstats
path: root/hw/hid.c
Commit message (Collapse)AuthorAgeFilesLines
* hid: fix misassignmentBlue Swirl2011-09-101-1/+1
| | | | | | | | | | 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>
* hid: introduce hid vmstate macrosMichael Walle2011-08-101-0/+58
| | | | | | | Add VMSTATE macros to describe a HIDState. Based on usb-hid.c descriptions. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* hid: register kbd hander in init()Michael Walle2011-08-101-2/+3
| | | | | | | | 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>
* usb/hid: add hid_pointer_activate, use itGerd Hoffmann2011-08-101-4/+9
| | | | | | | | | | | | | | HID reorganziation broke the usb tablet in windows xp. The reason is that xp activates idle before it starts polling, which creates a chicken-and-egg issue: We don't call hid_pointer_poll because there are no pending events. We don't get any events because the activation code in hid_pointer_poll is never executed and thus all pointer events are routed to the PS/2 mouse by qemu. Fix this by creating a hid_pointer_activate function and call it from usb-hid when the guest sets the idle state. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* hid: move idle+protocol from usb-hid to hid too.Gerd Hoffmann2011-08-041-0/+8
| | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* usb-hid: split hid code to hw/hid.[ch]Gerd Hoffmann2011-08-041-0/+395
Almost pure code motion. Unstatic hid interface functions and add them to the header file. Some renames. Some code style cleanups. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
OpenPOWER on IntegriCloud