mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-23 20:13:46 -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;
|
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…
x
Reference in New Issue
Block a user