qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] hid keyboard event handling


From: Michael Walle
Subject: [Qemu-devel] hid keyboard event handling
Date: Wed, 01 Oct 2014 16:03:55 +0200
User-agent: Roundcube Webmail/0.9.5

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 queued (see for loop in hid_keyboard_event()) but there is now only one callback.

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.

So at the moment, if you press the windows key, the event queue fills by two but only one entry is fetched from the device model and eventually the queue is full.

-michael



reply via email to

[Prev in Thread] Current Thread [Next in Thread]