[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 08/14] sdl2: remove sdl2_reset_keys() function
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 08/14] sdl2: remove sdl2_reset_keys() function |
Date: |
Tue, 5 Feb 2019 11:57:52 +0100 |
No users left, dead code.
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden
---
include/ui/sdl2.h | 1 -
ui/sdl2-input.c | 16 ----------------
2 files changed, 17 deletions(-)
diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h
index f6db642b65..71f5cfc6e3 100644
--- a/include/ui/sdl2.h
+++ b/include/ui/sdl2.h
@@ -44,7 +44,6 @@ void sdl2_window_destroy(struct sdl2_console *scon);
void sdl2_window_resize(struct sdl2_console *scon);
void sdl2_poll_events(struct sdl2_console *scon);
-void sdl2_reset_keys(struct sdl2_console *scon);
void sdl2_process_key(struct sdl2_console *scon,
SDL_KeyboardEvent *ev);
diff --git a/ui/sdl2-input.c b/ui/sdl2-input.c
index 1378b63dd9..208266c6a5 100644
--- a/ui/sdl2-input.c
+++ b/ui/sdl2-input.c
@@ -32,22 +32,6 @@
static uint8_t modifiers_state[SDL_NUM_SCANCODES];
-void sdl2_reset_keys(struct sdl2_console *scon)
-{
- QemuConsole *con = scon ? scon->dcl.con : NULL;
- int i;
-
- for (i = 0 ;
- i < SDL_NUM_SCANCODES && i < qemu_input_map_usb_to_qcode_len ;
- i++) {
- if (modifiers_state[i]) {
- int qcode = qemu_input_map_usb_to_qcode[i];
- qemu_input_event_send_key_qcode(con, qcode, false);
- modifiers_state[i] = 0;
- }
- }
-}
-
void sdl2_process_key(struct sdl2_console *scon,
SDL_KeyboardEvent *ev)
{
--
2.9.3
- [Qemu-devel] [PULL 00/14] Ui 20190205 patches, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 13/14] keymap: pass full keyboard state to keysym2scancode, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 01/14] Remove deprecated -no-frame option, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 04/14] ui/sdl_keysym: Remove obsolete SDL1.2 related code, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 03/14] ui: listen for GDK_SMOOTH_SCROLL events, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 11/14] kbd-state: use state tracker for gtk, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 06/14] ui/egl-helpers: Augment parameter list of egl_texture_blend() to convey scales of viewport, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 05/14] ui/cocoa.m: Fix macOS 10.14 deprecation warnings, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 02/14] ui: don't send any event if delta_y == 0, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 08/14] sdl2: remove sdl2_reset_keys() function,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 09/14] kbd-state: use state tracker for sdl2, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 12/14] kbd-state: use state tracker for vnc, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 10/14] sdl2: use only QKeyCode in sdl2_process_key(), Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 14/14] keymap: fix keyup mappings, Gerd Hoffmann, 2019/02/05
- [Qemu-devel] [PULL 07/14] kbd-state: add keyboard state tracker, Gerd Hoffmann, 2019/02/05
- Re: [Qemu-devel] [PULL 00/14] Ui 20190205 patches, Peter Maydell, 2019/02/05