Revision 38931fa8
ID | 38931fa8cfb074a08ce65fd1982bd4a5bef9d6fb |
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>idle on reset.
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
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Files
- added
- modified
- copied
- renamed
- deleted