[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 32/44] input-legacy: remove kbd_put_keycode
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 32/44] input-legacy: remove kbd_put_keycode |
Date: |
Mon, 24 Feb 2014 12:52:39 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
include/ui/console.h | 1 -
ui/input-legacy.c | 23 -----------------------
2 files changed, 24 deletions(-)
diff --git a/include/ui/console.h b/include/ui/console.h
index a3062d0..c7f4e4f 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -46,7 +46,6 @@ void qemu_activate_mouse_event_handler(QEMUPutMouseEntry
*entry);
QEMUPutLEDEntry *qemu_add_led_event_handler(QEMUPutLEDEvent *func, void
*opaque);
void qemu_remove_led_event_handler(QEMUPutLEDEntry *entry);
-void kbd_put_keycode(int keycode);
void kbd_put_ledstate(int ledstate);
void kbd_mouse_event(int dx, int dy, int dz, int buttons_state);
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;
--
1.8.3.1
- [Qemu-devel] [PATCH 33/44] input-legacy: remove kbd_mouse_has_absolute, (continued)
- [Qemu-devel] [PATCH 33/44] input-legacy: remove kbd_mouse_has_absolute, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 08/44] input: qapi: add pause key, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 11/44] input: keyboard: switch legacy handlers to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 34/44] input-legacy: remove kbd_mouse_is_absolute, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 18/44] input: keyboard: switch curses ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 27/44] input: mouse: switch spice ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 35/44] input-legacy: remove kbd_mouse_event, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 42/44] input: remove index_from_keycode (no users), Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 24/44] input: mouse: switch sdl ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 26/44] input: mouse: switch vnc ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 32/44] input-legacy: remove kbd_put_keycode,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 30/44] input: mouse: switch cocoa ui to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 09/44] input: add core bits of the new input layer, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 01/44] ui/sdl2 : initial port to SDL 2.0 (v2.0), Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 25/44] sdl2: switch mouse handling to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 05/44] input: rename file to legacy, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 40/44] input: move qmp_query_mice to new core, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 21/44] input: mouse: add qemu_input_is_absolute(), Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 07/44] input: qapi: add unmapped key, Gerd Hoffmann, 2014/02/24
- [Qemu-devel] [PATCH 29/44] input: keyboard: switch cocoa ui to new core, Gerd Hoffmann, 2014/02/24