foxygit / fake-08-xbox360 Log in
commit 9eb4a340a71cd8a6778fce4f9510f0b0c3f08315
Author:     DPS2004 <dpsophinos@gmail.com>
AuthorDate: Mon Feb 28 13:56:02 2022 -0500
Commit:     DPS2004 <dpsophinos@gmail.com>
CommitDate: Mon Apr 11 11:28:35 2022 -0400

    detect characters that SDL_TEXTINPUT ignores
---
 platform/windows/source/WindowsHost.cpp | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/platform/windows/source/WindowsHost.cpp b/platform/windows/source/WindowsHost.cpp
index 2e153e2..4bd989b 100644
--- a/platform/windows/source/WindowsHost.cpp
+++ b/platform/windows/source/WindowsHost.cpp
@@ -111,6 +111,18 @@ InputState_t Host::scanInput(){


             case SDL_KEYDOWN:
+
+				#if KB_ENABLED
+				switch (event.key.keysym.scancode)
+				{
+					case SDL_SCANCODE_BACKSPACE: currKBDown = true; currKBKey = "\b"; break;
+					case SDL_SCANCODE_RETURN: currKBDown = true; currKBKey = "\r"; break;
+					case SDL_SCANCODE_ESCAPE: currKBDown = true; currKBKey = "\27"; break;
+					case SDL_SCANCODE_TAB: currKBDown = true; currKBKey = "\t"; break;
+					default : break;
+				}
+				#endif
+
                 switch (event.key.keysym.sym)
                 {
                     case SDLK_ESCAPE:currKDown |= P8_KEY_PAUSE; break;