mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge pull request #2296 from CouleeApps/patch-1
Fix SDL Input::getKeyCode on software keyboard layouts
This commit is contained in:
commit
0e5a975df5
1 changed files with 2 additions and 2 deletions
|
|
@ -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) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue