- more debugging for keyboard issues

This commit is contained in:
Mark Vejvoda 2011-03-09 05:24:56 +00:00
parent ad94506842
commit 323f72ea6e
1 changed files with 4 additions and 1 deletions

View File

@ -624,10 +624,10 @@ char Window::getRawKey(SDL_keysym keysym) {
if(keysym.sym <= 255) {
result = keysym.sym;
}
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] result [%d]\n",__FILE__,__FUNCTION__,__LINE__,result);
if(SystemFlags::VERBOSE_MODE_ENABLED) printf ("In [%s::%s Line: %d] returning key [%d]\n",__FILE__,__FUNCTION__,__LINE__,result);
return result;
}
char Window::getNormalKey(SDL_keysym keysym,bool skipSpecialKeys) {
@ -635,6 +635,9 @@ char Window::getNormalKey(SDL_keysym keysym,bool skipSpecialKeys) {
//SDLKey unicodeKey = static_cast<SDLKey>(getRawKey(keysym));
char c = getRawKey(keysym);
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] c [%d]\n",__FILE__,__FUNCTION__,__LINE__,c);
SDLKey unicodeKey = SDLK_UNKNOWN;
if(c > SDLK_UNKNOWN && c < SDLK_LAST) {
unicodeKey = static_cast<SDLKey>(c);