forked from Mirrorlandia_minetest/irrlicht
master #5
@ -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