milkymist: softmmu: fix event handling
authorMichael Walle <michael@walle.cc>
Sat, 4 Oct 2014 18:00:07 +0000 (20:00 +0200)
committerMichael Walle <michael@walle.cc>
Mon, 29 Dec 2014 16:24:38 +0000 (17:24 +0100)
commit857cccac0d9450d9be6af1ca3e5b7730b408b33c
tree3d2af0314435143f6376a84f1b8cc02e0c42ea44
parentab0302ee764fd702465aef6d88612cdff4302809
milkymist: softmmu: fix event handling

Keys which send more than one scancode (esp. windows key) weren't handled
correctly since commit 1ff5eedd. Two events were put into the input event
queue but only one was processed. This fixes this by fetching all pending
events in the callback handler.

Signed-off-by: Michael Walle <michael@walle.cc>
Cc: Gerd Hoffmann <kraxel@redhat.com>
hw/input/milkymist-softusb.c