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];
|
||||||
|
@ -103,9 +103,9 @@ void AddPrefsDefaults(void)
|
|||||||
|
|
||||||
PrefsAddInt32("keyboardtype", 5);
|
PrefsAddInt32("keyboardtype", 5);
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
PrefsAddBool("swap_opt_cmd", false);
|
PrefsAddBool("swap_opt_cmd", false);
|
||||||
#else
|
#else
|
||||||
PrefsAddBool("swap_opt_cmd", true);
|
PrefsAddBool("swap_opt_cmd", true);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user