- fixed excess keyboard events in SDL backend

https://forum.zdoom.org/viewtopic.php?t=61104
This commit is contained in:
alexey.lysiuk 2018-06-29 12:20:26 +03:00
parent 6e4c0fc416
commit 0342bf532d

View file

@ -407,6 +407,11 @@ void MessagePump (const SDL_Event &sev)
case SDL_KEYUP:
if (!GUICapture)
{
if (sev.key.repeat)
{
break;
}
event.type = sev.type == SDL_KEYDOWN ? EV_KeyDown : EV_KeyUp;
// Try to look up our key mapped key for conversion to DirectInput.