ignore key repeat

This commit is contained in:
kanjitalk755 2020-10-08 17:10:49 +09:00
parent d20ba5d179
commit 43cb7718e6
2 changed files with 7 additions and 5 deletions

View File

@ -2302,6 +2302,8 @@ static void handle_events(void)
// Keyboard
case SDL_KEYDOWN: {
if (event.key.repeat)
break;
int code = CODE_INVALID;
if (use_keycodes && event2keycode(event.key, true) != CODE_HOTKEY)
code = keycode_table[event.key.keysym.scancode & 0xff];