From 1748c983174083e01584ead71015ee983dd6cecc Mon Sep 17 00:00:00 2001 From: StevenSYS <139715581+StevenSYS@users.noreply.github.com> Date: Sat, 21 Jun 2025 09:12:42 +0000 Subject: [PATCH] Added in game fullscreen toggling --- ISLE/isleapp.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index ae8760ff..d428f3a6 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -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; }