|
From: | Michael Walle |
Subject: | Re: [Qemu-devel] hid keyboard event handling |
Date: | Wed, 01 Oct 2014 16:23:40 +0200 |
User-agent: | Roundcube Webmail/0.9.5 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |