Statistics
| Branch: | Revision:

root / hw / hid.c @ 1f56f50a

History | View | Annotate | Download (14.1 kB)

# Date Author Comment
83c9f4ca 03/01/2013 04:01 pm Paolo Bonzini

hw: include hw header files with full paths

Done with this script:

cd hw
for i in `find . -name '*.h' | sed 's/^..//'`; do
echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
done | sed -i -f - `find . -type f`

This is so that paths remain valid as files are moved....

027c03f7 01/07/2013 01:57 pm Hans de Goede

hid: Change idle handling to use a timer

This leads to cleaner code in usb-hid, and removes up to a 1000 calls / sec to
qemu_get_clock_ns(vm_clock) if idle-time is set to its default value of 0.

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

28ecbaee 12/19/2012 09:31 am Paolo Bonzini

ui: move files to ui/ and include/ui/

Signed-off-by: Paolo Bonzini <>

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