qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] hid keyboard event handling


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 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 whenever there are events in the
queue or not.

Oh, didn't see that function. Thanks, that should do the trick.

-michael



reply via email to

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