Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Remove old SDL Windows workaround
Browse files Browse the repository at this point in the history
suggested by @waxtatect
  • Loading branch information
sfan5 committed Feb 15, 2024
1 parent 3992129 commit 4478b1f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions source/Irrlicht/CIrrDeviceSDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4478b1f

Please sign in to comment.