1
1
forked from 0ad/0ad
0ad/source
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
..
collada Fix compiler warnings on VS 2015, refs #3439, refs #5069. 2018-03-10 09:58:53 +00:00
graphics [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
gui Let players remap hotkeys in-game, fix default hotkeys being qwerty-specific. 2020-11-19 09:27:26 +00:00
i18n Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
lib Adds MSAA to anti-aliasing techniques. 2020-11-15 20:07:48 +00:00
lobby [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
maths Avoid overflow in UnitMotion. 2020-11-09 13:25:50 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
pch Precompiled logic update [Windows build] 2019-12-31 13:58:48 +00:00
ps Let players remap hotkeys in-game, fix default hotkeys being qwerty-specific. 2020-11-19 09:27:26 +00:00
renderer Adds MSAA to anti-aliasing techniques. 2020-11-15 20:07:48 +00:00
rlinterface Improve JS Exception handling. 2020-11-15 18:29:17 +00:00
scriptinterface [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
simulation2 [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
soundmanager Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
third_party Fix gcc warning reported by Imarok after 204e17206b 2020-05-23 12:21:49 +00:00
tools Let players remap hotkeys in-game, fix default hotkeys being qwerty-specific. 2020-11-19 09:27:26 +00:00
main.cpp Improve JS Exception handling. 2020-11-15 18:29:17 +00:00
test_setup.cpp Fix building without precompiled headers. 2020-11-18 11:35:36 +00:00