Skip to content

Commit

Permalink
atari:video:gem: Fix commit ea0674c
Browse files Browse the repository at this point in the history
Perhaps overlooked.
  • Loading branch information
mikrosk committed Jun 29, 2024
1 parent 90f1977 commit 9cfbedc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/video/gem/SDL_gemevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void GEM_PumpEvents(_THIS)

/* Update mouse state */
graf_mkstate(&mousex, &mousey, &mouseb, &em_out.emo_kmeta);
em_out.emo_kmeta |= (Kbshift(-1) & K_CAPSLOCK); /* MU_KEYBD is not aware of CAPSLOCK */
em_out.emo_kmeta |= (Kbshift(-1) & (0x80 | K_CAPSLOCK)); /* MU_KEYBD is not aware of AltGr and CAPSLOCK */
do_keyboard_special(em_out.emo_kmeta, cur_tick);
do_mouse_motion(this, mousex, mousey);
do_mouse_buttons(this, mouseb);
Expand Down Expand Up @@ -390,8 +390,7 @@ static void do_mouse_motion(_THIS, short mx, short my)

static int atari_GetButton(int button)
{
switch(button)
{
switch(button) {
case 0:
default:
return SDL_BUTTON_LEFT;
Expand Down

0 comments on commit 9cfbedc

Please sign in to comment.