From ed71ac8ec24307890e03e37f756e0803382aa961 Mon Sep 17 00:00:00 2001 From: Steven <139715581+StevenSYS@users.noreply.github.com> Date: Sat, 21 Jun 2025 14:09:33 +0000 Subject: [PATCH] Added in game fullscreen toggling (#358) --- ISLE/isleapp.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 6aa68f70..d230ad9a 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; }