add event queueing to USB HID
commit13f8b97a57450534ccb7aaeb55095a668183fbee
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Jan 2011 12:19:20 +0000 (12 13:19 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jan 2011 16:21:34 +0000 (24 17:21 +0100)
treeb01be45b41a7029e55e8d42ce1074bca9bac6f9e
parent0bfe006c5380c5f8a485a55ded3329fbbc224396
add event queueing to USB HID

The polling nature of the USB HID device makes it very hard to double
click or drag while on a high-latency VNC connection.  This patch,
based on work done in the Xen qemu-dm tree by Ian Jackson, fixes this
bug by adding an event queue to the device.  The event queue associates
each movement with the correct button state, and remembers all button
presses and releases as well.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffman <kraxel@redhat.com>
hw/usb-hid.c