- more scancode goodness, removing now dead wparam translation code
- add scancode for SDL_SCANCODE_NONUSBACKSLASH
- don't translate sdl key values for numeric and grave key

CR: SamL
This commit is contained in:
Jørgen P. Tjernø 2013-02-25 16:52:51 -08:00
parent ef5e7f5c65
commit 383deb9a61
3 changed files with 26 additions and 134 deletions

View file

@ -163,6 +163,12 @@ WIN_UpdateKeymap()
if (scancode == SDL_SCANCODE_UNKNOWN ) {
continue;
}
/* Don't allow the number keys right above the qwerty row to translate or the top left key (grave/backquote) */
/* not mapping numbers fixes the AZERTY layout (french) causing non-shifted number to appear by default */
if ( ( scancode >= SDL_SCANCODE_1 && scancode <= SDL_SCANCODE_0 ) ||
scancode == SDL_SCANCODE_GRAVE ) {
continue;
}
vk = MapVirtualKey(i, MAPVK_VSC_TO_VK);
if ( vk ) {