mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-07 12:32:21 +00:00
rollback caps lock
This commit is contained in:
parent
97f642676b
commit
61b454b68a
@ -2115,7 +2115,6 @@ static int SDLCALL on_sdl_event_generated(void *userdata, SDL_Event * event)
|
||||
|
||||
static void handle_events(void)
|
||||
{
|
||||
static bool capslock_inited;
|
||||
SDL_Event events[10];
|
||||
const int n_max_events = sizeof(events) / sizeof(events[0]);
|
||||
int n_events;
|
||||
@ -2178,10 +2177,6 @@ static void handle_events(void)
|
||||
code = keycode_table[event.key.keysym.scancode & 0xff];
|
||||
} else
|
||||
code = event2keycode(event.key, true);
|
||||
if (!capslock_inited) {
|
||||
if (SDL_GetModState() & KMOD_CAPS) ADBKeyDown(0x39);
|
||||
capslock_inited = true;
|
||||
}
|
||||
if (code >= 0) {
|
||||
if (!emul_suspended) {
|
||||
if (code == 0x39)
|
||||
|
Loading…
Reference in New Issue
Block a user