- fixed excess keyboard events in SDL backend

https://forum.zdoom.org/viewtopic.php?t=61104
(cherry picked from commit 0342bf532d)
This commit is contained in:
alexey.lysiuk 2018-06-29 12:20:26 +03:00 committed by drfrag666
parent ef69c049c8
commit a9804d04cf

View file

@ -413,6 +413,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.