Skip to content

Commit

Permalink
Fix Y/N prompts
Browse files Browse the repository at this point in the history
(more fallout from 22f4422)
  • Loading branch information
andrei-drexler committed Dec 24, 2023
1 parent 894b18f commit 2028c78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Quake/in_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,9 @@ void IN_SendKeyEvents (void)
// SDL2: we interpret the keyboard as the US layout, so keybindings
// are based on key position, not the label on the key cap.
key = IN_SDL2_ScancodeToQuakeKey(event.key.keysym.scancode);
Key_Event (key, down);

// also pass along the underlying keycode using the proper current layout for Y/N prompts.
Key_EventWithKeycode (key, down, event.key.keysym.sym);
break;

case SDL_MOUSEBUTTONDOWN:
Expand Down

0 comments on commit 2028c78

Please sign in to comment.