- SDL: clear button state when switching from/to GUI input

https://forum.zdoom.org/viewtopic.php?t=60451
This commit is contained in:
alexey.lysiuk 2018-05-06 14:37:04 +03:00
parent ce18ff1df3
commit 7fcefa2ed1
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#include "d_event.h" #include "d_event.h"
#include "d_gui.h" #include "d_gui.h"
#include "c_console.h" #include "c_console.h"
#include "c_dispatch.h"
#include "dikeys.h" #include "dikeys.h"
#include "s_sound.h" #include "s_sound.h"
#include "events.h" #include "events.h"
@ -193,6 +194,7 @@ static void I_CheckGUICapture ()
{ {
memset (DownState, 0, sizeof(DownState)); memset (DownState, 0, sizeof(DownState));
} }
ResetButtonStates();
} }
} }