Merge pull request #2296 from CouleeApps/patch-1

Fix SDL Input::getKeyCode on software keyboard layouts
This commit is contained in:
Areloch 2019-01-21 15:14:19 -06:00 committed by GitHub
commit 0e5a975df5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ U16 Input::getKeyCode( U16 asciiCode )
char c[2]; char c[2];
c[0]= asciiCode; c[0]= asciiCode;
c[1] = NULL; c[1] = NULL;
return KeyMapSDL::getTorqueScanCodeFromSDL( SDL_GetScancodeFromName( c ) ); return KeyMapSDL::getTorqueScanCodeFromSDL( SDL_GetScancodeFromKey( SDL_GetKeyFromName(c) ) );
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------