Statistics
| Branch: | Revision:

root / hw / hid.c @ 43997225

History | View | Annotate | Download (13.4 kB)

# Date Author Comment
18f88f11 09/10/2011 05:49 pm Blue Swirl

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 <>

21635e12 08/10/2011 03:14 pm Gerd Hoffmann

usb/hid: add hid_pointer_activate, use it

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...

bb0db527 08/10/2011 03:14 pm Michael Walle

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 <>
Signed-off-by: Gerd Hoffmann <>

ccd4ed06 08/10/2011 03:14 pm Michael Walle

hid: introduce hid vmstate macros

Add VMSTATE macros to describe a HIDState. Based on usb-hid.c descriptions.

Signed-off-by: Michael Walle <>
Signed-off-by: Gerd Hoffmann <>

dcfda673 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: split hid code to hw/hid.[ch]

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 <>

b069d348 08/04/2011 04:51 pm Gerd Hoffmann

hid: move idle+protocol from usb-hid to hid too.

Signed-off-by: Gerd Hoffmann <>