As requested. DirectInput-only controllers are already getting rarer and rarer. Plus, this branch makes all controllers faster & simpler to rebind. I'd even argue these get in the way, because you can't just immediately bind a DInput controller from boot-up, you have to unbind everything first. I'm not against a new code path for DInput defaults that tries to guess what kind of controller you have, but I don't care about it myself.
103 lines
1.9 KiB
Text
103 lines
1.9 KiB
Text
// These bindings are valid for all configurations
|
|
|
|
` toggleconsole
|
|
1 "slot 1"
|
|
2 "slot 2"
|
|
3 "slot 3"
|
|
4 "slot 4"
|
|
5 "slot 5"
|
|
6 "slot 6"
|
|
7 "slot 7"
|
|
8 "slot 8"
|
|
9 "slot 9"
|
|
0 "slot 0"
|
|
[ invprev
|
|
] invnext
|
|
mwheelleft invprev
|
|
mwheelright invnext
|
|
enter invuse
|
|
- sizedown
|
|
= sizeup
|
|
shift +speed
|
|
mouse1 +attack
|
|
capslock "toggle cl_run"
|
|
f1 menu_help
|
|
f2 menu_save
|
|
f3 menu_load
|
|
f4 menu_options
|
|
f5 menu_display
|
|
f6 quicksave
|
|
f7 menu_endgame
|
|
f8 togglemessages
|
|
f9 quickload
|
|
f11 bumpgamma
|
|
f10 menu_quit
|
|
tab togglemap
|
|
pause pause
|
|
sysrq screenshot
|
|
t messagemode
|
|
\ +showscores
|
|
f12 spynext
|
|
mwheeldown weapnext
|
|
mwheelup weapprev
|
|
|
|
// Originally just for Heretic, Hexen, and Strife.
|
|
// I can't see why they shouldn't be for Doom or Chex either.
|
|
pgup +moveup
|
|
ins +movedown
|
|
home land
|
|
pgdn +lookup
|
|
del +lookdown
|
|
end centerview
|
|
|
|
// Xbox 360 / PS2 controllers
|
|
pad_a +use
|
|
pad_y +jump
|
|
rtrigger +attack
|
|
ltrigger +altattack
|
|
lshoulder weapprev
|
|
rshoulder weapnext
|
|
dpadleft invprev
|
|
dpadright invnext
|
|
dpaddown invuse
|
|
dpadup togglemap
|
|
pad_start menu_main
|
|
pad_back pause
|
|
lthumb crouch
|
|
lstickleft +moveleft
|
|
lstickright +moveright
|
|
lstickup +forward
|
|
lstickdown +back
|
|
rstickleft +left
|
|
rstickright +right
|
|
rstickup +lookup
|
|
rstickdown +lookdown
|
|
|
|
/* Default automap bindings */
|
|
mapbind f am_togglefollow
|
|
mapbind g am_togglegrid
|
|
mapbind p am_toggletexture
|
|
mapbind m am_setmark
|
|
mapbind c am_clearmarks
|
|
mapbind 0 am_gobig
|
|
mapbind rightarrow +am_panright
|
|
mapbind leftarrow +am_panleft
|
|
mapbind uparrow +am_panup
|
|
mapbind downarrow +am_pandown
|
|
mapbind - +am_zoomout
|
|
mapbind = +am_zoomin
|
|
mapbind kp- +am_zoomout
|
|
mapbind kp+ +am_zoomin
|
|
mapbind mwheelup "am_zoom 1.2"
|
|
mapbind mwheeldown "am_zoom -1.2"
|
|
|
|
/* Automap bindings for controllers (bare minimum functionality) */
|
|
mapbind pad_x am_togglefollow
|
|
mapbind pad_a am_setmark
|
|
mapbind pad_b am_clearmarks
|
|
mapbind dpadright +am_panright
|
|
mapbind dpadleft +am_panleft
|
|
mapbind dpadup +am_panup
|
|
mapbind dpaddown +am_pandown
|
|
mapbind lshoulder +am_zoomout
|
|
mapbind rshoulder +am_zoomin
|