aboutsummaryrefslogtreecommitdiff
path: root/include/hw/input
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-04-24 12:08:38 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2013-04-24 11:50:18 -0500
commit5a37532d0897de488c35ab2db6d86647bd2a1b6f (patch)
tree13c6185efc40487fef39999ba0055120ac739aac /include/hw/input
parent72711efb58c13e28c89813490120b32947a2d719 (diff)
downloadqemu-5a37532d0897de488c35ab2db6d86647bd2a1b6f.zip
qemu-5a37532d0897de488c35ab2db6d86647bd2a1b6f.tar.gz
qemu-5a37532d0897de488c35ab2db6d86647bd2a1b6f.tar.bz2
input: introduce keyboard handler list
Add a linked list of keyboard handlers. Added handlers will go to the head of the list. Removed handlers will be zapped from the list. The head of the list will be used for events. This fixes the keyboard-dead-after-usb-kbd-unplug issue, key events will be re-routed to the ps/2 kbd instead of being discarded. [ v2: fix cut+paste bug found my Markus ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 1366798118-3248-3-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/hw/input')
-rw-r--r--include/hw/input/hid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/input/hid.h b/include/hw/input/hid.h
index 56c71ed..2567879 100644
--- a/include/hw/input/hid.h
+++ b/include/hw/input/hid.h
@@ -31,6 +31,7 @@ typedef struct HIDKeyboardState {
uint8_t leds;
uint8_t key[16];
int32_t keys;
+ QEMUPutKbdEntry *eh_entry;
} HIDKeyboardState;
struct HIDState {