mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
add default value of allowed keys in english of none
This commit is contained in:
@@ -755,9 +755,12 @@ void Window::addAllowedKeys(string keyList) {
|
|||||||
string key = trim(keys[keyIndex]);
|
string key = trim(keys[keyIndex]);
|
||||||
|
|
||||||
wchar_t sdl_key = convertStringtoSDLKey(key);
|
wchar_t sdl_key = convertStringtoSDLKey(key);
|
||||||
mapAllowedKeys[sdl_key] = true;
|
if(sdl_key != SDLK_UNKNOWN) {
|
||||||
|
mapAllowedKeys[sdl_key] = true;
|
||||||
|
}
|
||||||
|
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("key: %d [%s] IS ALLOWED\n",sdl_key, key.c_str());
|
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("key: %d [%s] IS ALLOWED\n",sdl_key, key.c_str());
|
||||||
|
//printf("key: %d [%s] IS ALLOWED\n",sdl_key, key.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user