« Previous | Next » 

Revision 38931fa8

ID38931fa8cfb074a08ce65fd1982bd4a5bef9d6fb

Added by Gerd Hoffmann almost 13 years ago

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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences