GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Fix SDL Input::getKeyCode on software keyboard layouts #2296

Closed CouleeApps closed 5 years ago

CouleeApps commented 5 years ago

Input::getAscii goes Torque keyCode -> SDL Scancode -> SDL Keycode -> SDL ascii key name Input::getKeycode goes SDL ascii key name -> SDL Scancode -> Torque keyCode

This mismatch makes software keyboard layouts behave incorrectly in different places. For example, if you bind a key to an ActionMap and it will activate with a different button than specified.

Azaezel commented 5 years ago

checks out