foxygit / fake-08-xbox360 Log in
commit f496dc539dceb300d1ece4a3b93a0fa73794063f
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Apr 13 21:19:22 2022 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Apr 13 21:19:22 2022 -0600

    Fix KB values resetting in sdl2 host
---
 platform/SDL2Desktop/source/SDL2Host.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/platform/SDL2Desktop/source/SDL2Host.cpp b/platform/SDL2Desktop/source/SDL2Host.cpp
index 2f4ff48..a38d76e 100644
--- a/platform/SDL2Desktop/source/SDL2Host.cpp
+++ b/platform/SDL2Desktop/source/SDL2Host.cpp
@@ -83,6 +83,9 @@ InputState_t Host::scanInput(){
     currKHeld = 0;
     stretchKeyPressed = false;

+    currKBDown = false;
+	currKBKey = "";
+
     while (SDL_PollEvent(&event)) {
         switch (event.type) {