[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/42] input: keyboard: switch qmp_send_key() to new
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 12/42] input: keyboard: switch qmp_send_key() to new core. |
Date: |
Mon, 16 Dec 2013 11:48:48 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/input-legacy.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/ui/input-legacy.c b/ui/input-legacy.c
index 80f4f5c..a4006cc 100644
--- a/ui/input-legacy.c
+++ b/ui/input-legacy.c
@@ -260,10 +260,8 @@ static void free_keycodes(void)
static void release_keys(void *opaque)
{
while (keycodes_size > 0) {
- if (keycodes[--keycodes_size] & SCANCODE_GREY) {
- kbd_put_keycode(SCANCODE_EMUL0);
- }
- kbd_put_keycode(keycodes[keycodes_size] | SCANCODE_UP);
+ qemu_input_event_send_key_number(NULL, keycodes[--keycodes_size],
+ false);
}
free_keycodes();
@@ -297,10 +295,7 @@ void qmp_send_key(KeyValueList *keys, bool has_hold_time,
int64_t hold_time,
return;
}
- if (keycode & SCANCODE_GREY) {
- kbd_put_keycode(SCANCODE_EMUL0);
- }
- kbd_put_keycode(keycode & SCANCODE_KEYCODEMASK);
+ qemu_input_event_send_key_number(NULL, keycode, true);
keycodes = g_realloc(keycodes, sizeof(int) * (keycodes_size + 1));
keycodes[keycodes_size++] = keycode;
--
1.8.3.1
- [Qemu-devel] [PATCH 00/42] rework input handling, sdl2 support, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 02/42] sdl2: baum build fix, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 04/42] console: export QemuConsole index, width, height, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 06/42] input: qapi: define event types, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 03/42] sdl2: remove text console logic, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 12/42] input: keyboard: switch qmp_send_key() to new core.,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 18/42] input: keyboard: switch curses ui to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 15/42] sdl2: switch keyboard handling to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 05/42] input: rename file to legacy, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 14/42] input: keyboard: switch sdl ui to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 10/42] input: keyboard: add helper functions to core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 11/42] input: keyboard: switch legacy handlers to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 25/42] sdl2: switch mouse handling to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 19/42] input: mouse: add helpers functions to core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 16/42] input: keyboard: switch vnc ui to new core, Gerd Hoffmann, 2013/12/16
- [Qemu-devel] [PATCH 09/42] input: add core bits of the new input layer, Gerd Hoffmann, 2013/12/16