Am 2014-10-01 16:17, schrieb Gerd Hoffmann:
Hi,My input device model (milkymist-softusb.c) polls (hid_keyboard_poll()) exactly once per event callback. Actually, i don't see any other way todo it because the hid_keyboard_poll() always succeeds even if there is no event in the queue.You can use hid_has_events() to figure whenever there are events in the queue or not.
Oh, didn't see that function. Thanks, that should do the trick. -michael