Remove old SDL Windows workaround

suggested by @waxtatect
This commit is contained in:
sfan5 2024-02-15 10:35:21 +01:00
parent 3992129735
commit 4478b1f1ec
1 changed files with 0 additions and 8 deletions

View File

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