mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
sdl2: remove sdl2_reset_keys() function
No users left, dead code. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20190122092814.14919-3-kraxel@redhat.com
This commit is contained in:
parent
47ddfab18a
commit
85b03694e1
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user