1
0
forked from 0ad/0ad
0ad/source/ps/scripting
wraitii a4852c4c01 Let players remap hotkeys in-game, fix default hotkeys being qwerty-specific.
- Provide a "Hotkey" screen to let players remap hotkeys in-game using a
convenient setup.
- Make all .cfg hotkeys refer to scancodes (i.e. position on the
keyboard), so that default hotkeys now translate correctly for AZERTY,
QWERTZ and other layouts.
- 'BackSpace' is now an alias for 'Delete', and works for killing units.
This fixes #1917, as macs don't have a proper delete key and would need
to use Fn+Del otherwise. This shifts "timewarp" to Shift+BackSpace.

Functionally, this switches hotkeys to scancodes, as that makes more
sense (they are combinations of key positions, not actual text output).
SDL includes are cleaned and key names are reused.

Fixes #2850, Fixes #2604, Refs #1810, Fixes #1917.

Follows work in 3d7784d2af.

Various diffs tested by: Angen, Stan, Freagarach
Comments by: Nescio
Differential Revision: https://code.wildfiregames.com/D2814
This was SVN commit r24215.
2020-11-19 09:27:26 +00:00
..
JSInterface_ConfigDB.cpp Let players remap hotkeys in-game, fix default hotkeys being qwerty-specific. 2020-11-19 09:27:26 +00:00
JSInterface_ConfigDB.h Let players remap hotkeys in-game, fix default hotkeys being qwerty-specific. 2020-11-19 09:27:26 +00:00
JSInterface_Console.cpp Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_Console.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_Debug.cpp Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_Debug.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_Game.cpp [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
JSInterface_Game.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_Hotkey.cpp Let players remap hotkeys in-game, fix default hotkeys being qwerty-specific. 2020-11-19 09:27:26 +00:00
JSInterface_Hotkey.h Let players remap hotkeys in-game, fix default hotkeys being qwerty-specific. 2020-11-19 09:27:26 +00:00
JSInterface_Main.cpp Improve JS Exception handling. 2020-11-15 18:29:17 +00:00
JSInterface_Main.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_Mod.cpp Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_Mod.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_ModIo.cpp Improve JS Exception handling. 2020-11-15 18:29:17 +00:00
JSInterface_ModIo.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_SavedGame.cpp [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
JSInterface_SavedGame.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_UserReport.cpp Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_UserReport.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_VFS.cpp [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
JSInterface_VFS.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_VisualReplay.cpp Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
JSInterface_VisualReplay.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00