diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-12-05 08:12:19 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-03-05 09:52:03 +0100 |
commit | faecd955ce3100992a8930a4e96c9bc5e27349ce (patch) | |
tree | 3d8f1172707b2e134d86a400b43bf85e93856168 /ui/input-legacy.c | |
parent | c43ce5512fad19896fc952dc769538d5c553f4c9 (diff) | |
download | qemu-faecd955ce3100992a8930a4e96c9bc5e27349ce.zip qemu-faecd955ce3100992a8930a4e96c9bc5e27349ce.tar.gz qemu-faecd955ce3100992a8930a4e96c9bc5e27349ce.tar.bz2 |
input-legacy: remove kbd_put_keycode
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/input-legacy.c')
-rw-r--r-- | ui/input-legacy.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ui/input-legacy.c b/ui/input-legacy.c index dd2dec3..3ac30e2 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -500,29 +500,6 @@ void qemu_remove_led_event_handler(QEMUPutLEDEntry *entry) g_free(entry); } -void kbd_put_keycode(int keycode) -{ - static bool emul0; - bool up; - - if (keycode == SCANCODE_EMUL0) { - emul0 = true; - return; - } - if (keycode & SCANCODE_UP) { - keycode &= ~SCANCODE_UP; - up = true; - } else { - up = false; - } - if (emul0) { - keycode |= SCANCODE_GREY; - emul0 = false; - } - - qemu_input_event_send_key_number(NULL, keycode, !up); -} - void kbd_put_ledstate(int ledstate) { QEMUPutLEDEntry *cursor; |