From 76919f81b6f770c1e460127053b64f7b76cc46d7 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 8 Mar 2011 00:56:57 +0000 Subject: [PATCH] - does this help with the windows keyboard problem for some users? --- source/shared_lib/sources/platform/sdl/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/platform/sdl/window.cpp b/source/shared_lib/sources/platform/sdl/window.cpp index ffe6262a..8b9fc236 100644 --- a/source/shared_lib/sources/platform/sdl/window.cpp +++ b/source/shared_lib/sources/platform/sdl/window.cpp @@ -635,11 +635,11 @@ char Window::getNormalKey(SDL_keysym keysym,bool skipSpecialKeys) { //SDLKey unicodeKey = static_cast(getRawKey(keysym)); char c = getRawKey(keysym); - SDLKey unicodeKey; + SDLKey unicodeKey = SDLK_UNKNOWN; if(c > SDLK_UNKNOWN && c < SDLK_LAST) { unicodeKey = static_cast(c); } - if(unicodeKey == 0) { + if(unicodeKey == SDLK_UNKNOWN) { unicodeKey = keysym.sym; }