Skip to content

Commit

Permalink
sdl2: remove sdl2_reset_keys() function
Browse files Browse the repository at this point in the history
No users left, dead code.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20190122092814.14919-3-kraxel@redhat.com
  • Loading branch information
kraxel committed Feb 5, 2019
1 parent 47ddfab commit 85b0369
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion include/ui/sdl2.h
Expand Up @@ -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);

Expand Down
16 changes: 0 additions & 16 deletions ui/sdl2-input.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit 85b0369

Please sign in to comment.