From 5a37532d0897de488c35ab2db6d86647bd2a1b6f Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 24 Apr 2013 12:08:38 +0200 Subject: 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 Message-id: 1366798118-3248-3-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori --- include/hw/input/hid.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/input') diff --git a/include/hw/input/hid.h b/include/hw/input/hid.h index 56c71ed5ae..2567879399 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 { -- cgit v1.2.3-55-g7522