diff --git a/OpenRA.Platforms.Default/Sdl2Input.cs b/OpenRA.Platforms.Default/Sdl2Input.cs index d2d77e06e8f7..e097dc616694 100644 --- a/OpenRA.Platforms.Default/Sdl2Input.cs +++ b/OpenRA.Platforms.Default/Sdl2Input.cs @@ -67,8 +67,20 @@ public void PumpInput(Sdl2PlatformWindow device, IInputHandler inputHandler, int inputHandler.ModifierKeys(mods); MouseInput? pendingMotion = null; - while (SDL.SDL_PollEvent(out var e) != 0) + var skip = true; + while (true) { + if (SDL.SDL_PollEvent(out var e) == 0) + { + if (skip) + { + skip = false; + continue; + } + + break; + } + switch (e.type) { case SDL.SDL_EventType.SDL_QUIT: