mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-22 03:22:35 -04:00
Added in game fullscreen toggling (#358)
This commit is contained in:
parent
922794e7ea
commit
ed71ac8ec2
@ -433,8 +433,14 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user