mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Added in game fullscreen toggling
This commit is contained in:
parent
54b56c6b13
commit
1748c98317
@ -433,8 +433,14 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDL_Keycode keyCode = event->key.key;
|
SDL_Keycode keyCode = event->key.key;
|
||||||
if (InputManager()) {
|
|
||||||
InputManager()->QueueEvent(c_notificationKeyPress, keyCode, 0, 0, keyCode);
|
if (event->key.mod == SDL_KMOD_LALT && keyCode == SDLK_RETURN) {
|
||||||
|
SDL_SetWindowFullscreen(window, !(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (InputManager()) {
|
||||||
|
InputManager()->QueueEvent(c_notificationKeyPress, keyCode, 0, 0, keyCode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user