- hopefully a fix for skankerror

This commit is contained in:
Mark Vejvoda 2011-07-05 22:08:44 +00:00
parent ce8d54e7e0
commit 84870877ba
1 changed files with 6 additions and 0 deletions

View File

@ -966,6 +966,12 @@ bool isKeyPressed(SDLKey compareKey, SDL_KeyboardEvent input,bool modifiersAllow
(input.keysym.mod & KMOD_RSHIFT) == KMOD_RSHIFT) {
c = input.keysym.unicode;
}
else if((input.keysym.mod & KMOD_LCTRL) == KMOD_LCTRL ||
(input.keysym.mod & KMOD_RCTRL) == KMOD_RCTRL) {
if(c >= SDLK_0 && c <= SDLK_9) {
c = input.keysym.unicode;
}
}
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d] #1 (c & 0xFF) [%d]\n",__FILE__,__FUNCTION__,__LINE__,(c & 0xFF));
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem, "In [%s::%s Line: %d] #1 (c & 0xFF) [%d]\n",__FILE__,__FUNCTION__,__LINE__,(c & 0xFF));