From 0342bf532d02381bdd04addf6643e95f6b18d26a Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 29 Jun 2018 12:20:26 +0300 Subject: [PATCH] - fixed excess keyboard events in SDL backend https://forum.zdoom.org/viewtopic.php?t=61104 --- src/posix/sdl/i_input.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/posix/sdl/i_input.cpp b/src/posix/sdl/i_input.cpp index 88c43050c..561870a4e 100644 --- a/src/posix/sdl/i_input.cpp +++ b/src/posix/sdl/i_input.cpp @@ -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.