- more unicode character code cleanup

This commit is contained in:
Mark Vejvoda 2011-03-04 02:01:20 +00:00
parent 10eba296fe
commit 73efa41cc9
1 changed files with 3 additions and 3 deletions

View File

@ -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));