mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- Add keybindings presets.
# Conflicts: # src/menu/menu.cpp
This commit is contained in:
parent
200104777b
commit
77609f1950
15 changed files with 106 additions and 19 deletions
|
@ -510,6 +510,11 @@ CCMD(reset2saved)
|
||||||
R_SetViewSize (screenblocks);
|
R_SetViewSize (screenblocks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCMD(resetb2defaults)
|
||||||
|
{
|
||||||
|
C_SetDefaultBindings ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Default keybindings for all games */
|
// These bindings are valid for all configurations
|
||||||
|
|
||||||
` toggleconsole
|
` toggleconsole
|
||||||
1 "slot 1"
|
1 "slot 1"
|
||||||
|
@ -18,20 +18,8 @@ mwheelright invnext
|
||||||
enter invuse
|
enter invuse
|
||||||
- sizedown
|
- sizedown
|
||||||
= sizeup
|
= sizeup
|
||||||
ctrl +attack
|
|
||||||
alt +strafe
|
|
||||||
shift +speed
|
shift +speed
|
||||||
space +use
|
|
||||||
rightarrow +right
|
|
||||||
leftarrow +left
|
|
||||||
uparrow +forward
|
|
||||||
downarrow +back
|
|
||||||
, +moveleft
|
|
||||||
. +moveright
|
|
||||||
mouse1 +attack
|
mouse1 +attack
|
||||||
mouse2 +strafe
|
|
||||||
mouse3 +forward
|
|
||||||
mouse4 +speed
|
|
||||||
capslock "toggle cl_run"
|
capslock "toggle cl_run"
|
||||||
f1 menu_help
|
f1 menu_help
|
||||||
f2 menu_save
|
f2 menu_save
|
||||||
|
@ -62,12 +50,6 @@ pgdn +lookup
|
||||||
del +lookdown
|
del +lookdown
|
||||||
end centerview
|
end centerview
|
||||||
|
|
||||||
// Generic joystick buttons
|
|
||||||
joy1 +attack
|
|
||||||
joy2 +strafe
|
|
||||||
joy3 +speed
|
|
||||||
joy4 +use
|
|
||||||
|
|
||||||
// Xbox 360 / PS2 controllers
|
// Xbox 360 / PS2 controllers
|
||||||
pad_a +use
|
pad_a +use
|
||||||
pad_y +jump
|
pad_y +jump
|
10
wadsrc/static/engine/defbinds.txt
Normal file
10
wadsrc/static/engine/defbinds.txt
Normal 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
|
18
wadsrc/static/engine/leftbinds.txt
Normal file
18
wadsrc/static/engine/leftbinds.txt
Normal 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
20
wadsrc/static/engine/origbinds.txt
Normal file
20
wadsrc/static/engine/origbinds.txt
Normal 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
|
3
wadsrc/static/filter/game-heretic/engine/leftbinds.txt
Normal file
3
wadsrc/static/filter/game-heretic/engine/leftbinds.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/* Default keybindings for Heretic */
|
||||||
|
|
||||||
|
backspace "use ArtiTomeOfPower"
|
3
wadsrc/static/filter/game-heretic/engine/origbinds.txt
Normal file
3
wadsrc/static/filter/game-heretic/engine/origbinds.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/* Default keybindings for Heretic */
|
||||||
|
|
||||||
|
backspace "use ArtiTomeOfPower"
|
11
wadsrc/static/filter/game-hexen/engine/defbinds.txt
Normal file
11
wadsrc/static/filter/game-hexen/engine/defbinds.txt
Normal 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
|
11
wadsrc/static/filter/game-hexen/engine/leftbinds.txt
Normal file
11
wadsrc/static/filter/game-hexen/engine/leftbinds.txt
Normal 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
|
7
wadsrc/static/filter/game-strife/engine/defbinds.txt
Normal file
7
wadsrc/static/filter/game-strife/engine/defbinds.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/* Default keybindings for Strife */
|
||||||
|
|
||||||
|
c "showpop 1"
|
||||||
|
backspace invdrop
|
||||||
|
z "showpop 3"
|
||||||
|
k "showpop 2"
|
||||||
|
q invquery
|
7
wadsrc/static/filter/game-strife/engine/leftbinds.txt
Normal file
7
wadsrc/static/filter/game-strife/engine/leftbinds.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/* Default keybindings for Strife */
|
||||||
|
|
||||||
|
w "showpop 1"
|
||||||
|
backspace invdrop
|
||||||
|
z "showpop 3"
|
||||||
|
s "showpop 2"
|
||||||
|
q invquery
|
|
@ -504,6 +504,13 @@ ListMenu "PlayerMenu"
|
||||||
//
|
//
|
||||||
//-------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
OptionValue "Layouts"
|
||||||
|
{
|
||||||
|
0, "$OPTVAL_MODERN"
|
||||||
|
1, "$OPTVAL_CLASSICZ"
|
||||||
|
2, "$OPTVAL_MODERNLEFT"
|
||||||
|
}
|
||||||
|
|
||||||
OptionMenu "CustomizeControls" protected
|
OptionMenu "CustomizeControls" protected
|
||||||
{
|
{
|
||||||
Title "$CNTRLMNU_TITLE"
|
Title "$CNTRLMNU_TITLE"
|
||||||
|
@ -515,6 +522,9 @@ OptionMenu "CustomizeControls" protected
|
||||||
Submenu "$CNTRLMNU_OTHER" , "OtherControlsMenu"
|
Submenu "$CNTRLMNU_OTHER" , "OtherControlsMenu"
|
||||||
Submenu "$CNTRLMNU_POPUPS" , "StrifeControlsMenu"
|
Submenu "$CNTRLMNU_POPUPS" , "StrifeControlsMenu"
|
||||||
Submenu "$MAPCNTRLMNU_CONTROLS" , "MapControlsMenu"
|
Submenu "$MAPCNTRLMNU_CONTROLS" , "MapControlsMenu"
|
||||||
|
StaticText ""
|
||||||
|
Option "$CNTRLMNU_LAYOUT", "cl_defaultconfiguration", "Layouts"
|
||||||
|
SafeCommand "$OPTMNU_DEFAULTS", "resetb2defaults"
|
||||||
}
|
}
|
||||||
|
|
||||||
OptionMenu "ActionControlsMenu" protected
|
OptionMenu "ActionControlsMenu" protected
|
||||||
|
|
Loading…
Reference in a new issue