diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2011-07-15 14:46:39 +0200 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-08-04 15:51:51 +0200 |
| commit | 38931fa8cfb074a08ce65fd1982bd4a5bef9d6fb (patch) | |
| tree | 68b15b7093f03f4b2804b03a577dfce0f01e93d7 /hw/hid.c | |
| parent | 8bde6805412a2808009a84f1ce5f47b88b0352d0 (diff) | |
| download | focaccia-qemu-38931fa8cfb074a08ce65fd1982bd4a5bef9d6fb.tar.gz focaccia-qemu-38931fa8cfb074a08ce65fd1982bd4a5bef9d6fb.zip | |
usb-hid: add hid_has_events()
Add hid_has_events function, use it to figure whenever there are pending events instead of checking and updating USBHIDState->changed. Setting ->changed to 1 on init is removed, that should have absolutely no effect as the initial state of ->idle is 0 so we report hid state anyway until the guest configures some idle time. Also should clear ->idle on reset. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/hid.c')
0 files changed, 0 insertions, 0 deletions