mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-28 23:49:23 +00:00
ignore key repeat
This commit is contained in:
parent
d20ba5d179
commit
43cb7718e6
@ -2302,6 +2302,8 @@ static void handle_events(void)
|
|||||||
|
|
||||||
// Keyboard
|
// Keyboard
|
||||||
case SDL_KEYDOWN: {
|
case SDL_KEYDOWN: {
|
||||||
|
if (event.key.repeat)
|
||||||
|
break;
|
||||||
int code = CODE_INVALID;
|
int code = CODE_INVALID;
|
||||||
if (use_keycodes && event2keycode(event.key, true) != CODE_HOTKEY)
|
if (use_keycodes && event2keycode(event.key, true) != CODE_HOTKEY)
|
||||||
code = keycode_table[event.key.keysym.scancode & 0xff];
|
code = keycode_table[event.key.keysym.scancode & 0xff];
|
||||||
|
Loading…
Reference in New Issue
Block a user