Skip to content

Commit

Permalink
fix CapsLock for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kanjitalk755 committed Dec 17, 2020
1 parent cadd335 commit 436c5df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions BasiliskII/src/SDL/video_sdl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2347,13 +2347,13 @@ static void handle_events(void)
code = event2keycode(event.key, true);
if (code >= 0) {
if (!emul_suspended) {
#ifdef WIN32
#ifdef __MACOSX__
ADBKeyDown(code);
#else
if (code == 0x39)
(SDL_GetModState() & KMOD_CAPS ? ADBKeyDown : ADBKeyUp)(code);
else
ADBKeyDown(code);
#else
ADBKeyDown(code);
#endif
if (code == 0x36)
ctrl_down = true;
Expand All @@ -2376,11 +2376,11 @@ static void handle_events(void)
if (code == CODE_INVALID)
code = event2keycode(event.key, false);
if (code >= 0) {
#ifdef WIN32
#ifdef __MACOSX__
ADBKeyUp(code);
#else
if (code != 0x39)
ADBKeyUp(code);
#else
ADBKeyUp(code);
#endif
if (code == 0x36)
ctrl_down = false;
Expand Down

0 comments on commit 436c5df

Please sign in to comment.