[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] hid keyboard event handling
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] hid keyboard event handling |
Date: |
Wed, 01 Oct 2014 16:17:51 +0200 |
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.
cheers,
Gerd