From 4478b1f1ecdab83372cdba20d98b0594bb383b1e Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 15 Feb 2024 10:35:21 +0100 Subject: [PATCH] Remove old SDL Windows workaround suggested by @waxtatect --- source/Irrlicht/CIrrDeviceSDL.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/Irrlicht/CIrrDeviceSDL.cpp b/source/Irrlicht/CIrrDeviceSDL.cpp index 3f73abc6..19fb888e 100644 --- a/source/Irrlicht/CIrrDeviceSDL.cpp +++ b/source/Irrlicht/CIrrDeviceSDL.cpp @@ -741,14 +741,6 @@ bool CIrrDeviceSDL::run() if (SDL_IsTextInputActive() && !keyIsKnownSpecial(key) && (SDL_event.key.keysym.mod & KMOD_CTRL) == 0) break; -#ifdef _IRR_WINDOWS_API_ - // handle alt+f4 in Windows, because SDL seems not to - if ( (SDL_event.key.keysym.mod & KMOD_LALT) && key == KEY_F4) - { - Close = true; - break; - } -#endif irrevent.EventType = irr::EET_KEY_INPUT_EVENT; irrevent.KeyInput.Key = key; irrevent.KeyInput.PressedDown = (SDL_event.type == SDL_KEYDOWN);