From 7fcefa2ed11928a5c8c94b7b79f33613b121b873 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 6 May 2018 14:37:04 +0300 Subject: [PATCH] - SDL: clear button state when switching from/to GUI input https://forum.zdoom.org/viewtopic.php?t=60451 --- src/posix/sdl/i_input.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/posix/sdl/i_input.cpp b/src/posix/sdl/i_input.cpp index cc3acd5ba..88c43050c 100644 --- a/src/posix/sdl/i_input.cpp +++ b/src/posix/sdl/i_input.cpp @@ -41,6 +41,7 @@ #include "d_event.h" #include "d_gui.h" #include "c_console.h" +#include "c_dispatch.h" #include "dikeys.h" #include "s_sound.h" #include "events.h" @@ -193,6 +194,7 @@ static void I_CheckGUICapture () { memset (DownState, 0, sizeof(DownState)); } + ResetButtonStates(); } }