Re: [Qemu-devel] hid keyboard event handling

2014-10-01 Thread Michael Walle
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 to do it because the hid_keyboard_poll() always succeeds even if there is no event in the queue. You c

Re: [Qemu-devel] hid keyboard event handling

2014-10-01 Thread 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 to > do 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 whe

[Qemu-devel] hid keyboard event handling

2014-10-01 Thread Michael Walle
Hi Gerd, i have another issue. This time with the hid keyboard rework (commit 1ff5eedd). Before this commit, a press of, for example the windows key, resulted in two calls of the hs->event() callback. Eg. there were two events queued and two callbacks. But after your commit, two events are qu