forked from Mirrorlandia_minetest/irrlicht
Remove old SDL Windows workaround
suggested by @waxtatect
This commit is contained in:
parent
3992129735
commit
4478b1f1ec
@ -741,14 +741,6 @@ bool CIrrDeviceSDL::run()
|
|||||||
if (SDL_IsTextInputActive() && !keyIsKnownSpecial(key) && (SDL_event.key.keysym.mod & KMOD_CTRL) == 0)
|
if (SDL_IsTextInputActive() && !keyIsKnownSpecial(key) && (SDL_event.key.keysym.mod & KMOD_CTRL) == 0)
|
||||||
break;
|
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.EventType = irr::EET_KEY_INPUT_EVENT;
|
||||||
irrevent.KeyInput.Key = key;
|
irrevent.KeyInput.Key = key;
|
||||||
irrevent.KeyInput.PressedDown = (SDL_event.type == SDL_KEYDOWN);
|
irrevent.KeyInput.PressedDown = (SDL_event.type == SDL_KEYDOWN);
|
||||||
|
Loading…
Reference in New Issue
Block a user