Added in game fullscreen toggling

This commit is contained in:
StevenSYS 2025-06-21 09:12:42 +00:00
parent 54b56c6b13
commit 1748c98317
No known key found for this signature in database
GPG Key ID: F9AA9FDE5D81F736

View File

@ -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;
}