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.