- does this help with the windows keyboard problem for some users?

This commit is contained in:
Mark Vejvoda 2011-03-08 00:56:57 +00:00
parent 5494a80233
commit 76919f81b6
1 changed files with 2 additions and 2 deletions

View File

@ -635,11 +635,11 @@ char Window::getNormalKey(SDL_keysym keysym,bool skipSpecialKeys) {
//SDLKey unicodeKey = static_cast<SDLKey>(getRawKey(keysym));
char c = getRawKey(keysym);
SDLKey unicodeKey;
SDLKey unicodeKey = SDLK_UNKNOWN;
if(c > SDLK_UNKNOWN && c < SDLK_LAST) {
unicodeKey = static_cast<SDLKey>(c);
}
if(unicodeKey == 0) {
if(unicodeKey == SDLK_UNKNOWN) {
unicodeKey = keysym.sym;
}