- Add keybindings presets.

# Conflicts:
#	src/menu/menu.cpp
This commit is contained in:
drfrag 2020-06-10 19:24:05 +02:00 committed by Christoph Oelckers
parent 200104777b
commit 77609f1950
15 changed files with 106 additions and 19 deletions

View File

@ -510,6 +510,11 @@ CCMD(reset2saved)
R_SetViewSize (screenblocks);
}
CCMD(resetb2defaults)
{
C_SetDefaultBindings ();
}
//=============================================================================
//

View File

@ -1,4 +1,4 @@
/* Default keybindings for all games */
// These bindings are valid for all configurations
` toggleconsole
1 "slot 1"
@ -18,20 +18,8 @@ mwheelright invnext
enter invuse
- sizedown
= sizeup
ctrl +attack
alt +strafe
shift +speed
space +use
rightarrow +right
leftarrow +left
uparrow +forward
downarrow +back
, +moveleft
. +moveright
mouse1 +attack
mouse2 +strafe
mouse3 +forward
mouse4 +speed
capslock "toggle cl_run"
f1 menu_help
f2 menu_save
@ -62,12 +50,6 @@ pgdn +lookup
del +lookdown
end centerview
// Generic joystick buttons
joy1 +attack
joy2 +strafe
joy3 +speed
joy4 +use
// Xbox 360 / PS2 controllers
pad_a +use
pad_y +jump

View File

@ -0,0 +1,10 @@
/* Default WASD keybindings for all games */
w +forward
s +back
a +moveleft
d +moveright
space +jump
x crouch
e +use
mouse2 +altattack

View File

@ -0,0 +1,18 @@
/* Default keybindings for all games */
KP8 +forward
KP5 +back
KP4 +moveleft
KP6 +moveright
KP7 +jump
KP1 crouch
KP0 +use
UpArrow +forward
DownArrow +back
LeftArrow +moveleft
RightArrow +moveright
mouse2 +altattack

View File

@ -0,0 +1,20 @@
/* Default classic keybindings for all games */
ctrl +attack
alt +strafe
rightarrow +right
leftarrow +left
uparrow +forward
downarrow +back
, +moveleft
. +moveright
space +use
mouse2 +strafe
mouse3 +forward
mouse4 +speed
// Generic joystick buttons
joy1 +attack
joy2 +strafe
joy3 +speed
joy4 +use

View File

@ -0,0 +1,3 @@
/* Default keybindings for Heretic */
backspace "use ArtiTomeOfPower"

View File

@ -0,0 +1,3 @@
/* Default keybindings for Heretic */
backspace "use ArtiTomeOfPower"

View File

@ -0,0 +1,11 @@
/* Default keybindings for Hexen */
backspace invuseall
\ "use ArtiHealth"
0 useflechette
9 "use ArtiBlastRadius"
8 "use ArtiTeleport"
7 "use ArtiTeleportOther"
6 "use ArtiPork"
5 "use ArtiInvulnerability2"
scroll +showscores

View File

@ -0,0 +1,11 @@
/* Default keybindings for Hexen */
backspace invuseall
\ "use ArtiHealth"
0 useflechette
9 "use ArtiBlastRadius"
8 "use ArtiTeleport"
7 "use ArtiTeleportOther"
6 "use ArtiPork"
5 "use ArtiInvulnerability2"
scroll +showscores

View File

@ -0,0 +1,7 @@
/* Default keybindings for Strife */
c "showpop 1"
backspace invdrop
z "showpop 3"
k "showpop 2"
q invquery

View File

@ -0,0 +1,7 @@
/* Default keybindings for Strife */
w "showpop 1"
backspace invdrop
z "showpop 3"
s "showpop 2"
q invquery

View File

@ -504,6 +504,13 @@ ListMenu "PlayerMenu"
//
//-------------------------------------------------------------------------------------------
OptionValue "Layouts"
{
0, "$OPTVAL_MODERN"
1, "$OPTVAL_CLASSICZ"
2, "$OPTVAL_MODERNLEFT"
}
OptionMenu "CustomizeControls" protected
{
Title "$CNTRLMNU_TITLE"
@ -515,6 +522,9 @@ OptionMenu "CustomizeControls" protected
Submenu "$CNTRLMNU_OTHER" , "OtherControlsMenu"
Submenu "$CNTRLMNU_POPUPS" , "StrifeControlsMenu"
Submenu "$MAPCNTRLMNU_CONTROLS" , "MapControlsMenu"
StaticText ""
Option "$CNTRLMNU_LAYOUT", "cl_defaultconfiguration", "Layouts"
SafeCommand "$OPTMNU_DEFAULTS", "resetb2defaults"
}
OptionMenu "ActionControlsMenu" protected