allow right alt in fullscreen combo (#29)

This commit is contained in:
Isaac0-dev 2024-05-08 09:52:33 +10:00 committed by GitHub
parent 1bd638ba2b
commit c512d403a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ static void gfx_sdl_get_dimensions(uint32_t *width, uint32_t *height) {
static void gfx_sdl_onkeydown(int scancode) {
const Uint8 *state = SDL_GetKeyboardState(NULL);
if (state[SDL_SCANCODE_LALT] && state[SDL_SCANCODE_RETURN]) {
if ((state[SDL_SCANCODE_LALT] || state[SDL_SCANCODE_RALT]) && state[SDL_SCANCODE_RETURN]) {
configWindow.fullscreen = !configWindow.fullscreen;
configWindow.settings_changed = true;
return;