mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
allow right alt in fullscreen combo (#29)
This commit is contained in:
parent
1bd638ba2b
commit
c512d403a1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue