From 73efa41cc9ca2995bb8c778871e8ae990ba02ba6 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 4 Mar 2011 02:01:20 +0000 Subject: [PATCH] - more unicode character code cleanup --- source/shared_lib/sources/platform/sdl/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/shared_lib/sources/platform/sdl/window.cpp b/source/shared_lib/sources/platform/sdl/window.cpp index d83c0f24..69e2584a 100644 --- a/source/shared_lib/sources/platform/sdl/window.cpp +++ b/source/shared_lib/sources/platform/sdl/window.cpp @@ -866,10 +866,10 @@ char Window::getKey(SDL_keysym keysym,bool skipSpecialKeys) { } else { SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); - Uint16 c = keysym.unicode; - if((c & 0xFF80) == 0) { + Uint16 c = 0; + if(keysym.unicode > 0 && keysym.unicode < 0x80) { SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); - c = keysym.unicode & 0x7F; + c = keysym.unicode; //c = toupper(c); if(SystemFlags::VERBOSE_MODE_ENABLED) printf ("In [%s::%s Line: %d] #1 (c & 0xFF) [%d]\n",__FILE__,__FUNCTION__,__LINE__,(c & 0xFF));