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

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) { static void gfx_sdl_onkeydown(int scancode) {
const Uint8 *state = SDL_GetKeyboardState(NULL); 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.fullscreen = !configWindow.fullscreen;
configWindow.settings_changed = true; configWindow.settings_changed = true;
return; return;