Add more gamepad bindings for Joystick API devices. Most beneficial for Steam Deck and Linux users

This commit is contained in:
nashmuhandes 2024-02-04 00:32:08 +08:00 committed by Christoph Oelckers
parent f1db369883
commit d744f8f983
2 changed files with 36 additions and 1 deletions

View file

@ -65,6 +65,20 @@ pad_start menu_main
pad_back pause
lthumb crouch
// Generic gamepad bindings
joy1 +use
joy4 +jump
axis6plus +attack
axis3plus +altattack
joy5 weapprev
joy6 weapnext
pov1left invprev
pov1right invnext
pov1down invuse
pov1up togglemap
joy8 menu_main
joy7 pause
joy10 crouch
/* Default automap bindings */
mapbind f am_togglefollow
@ -83,3 +97,24 @@ 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
mapbind joy3 am_togglefollow
mapbind joy1 am_setmark
mapbind joy2 am_clearmarks
mapbind pov1right +am_panright
mapbind pov1left +am_panleft
mapbind pov1up +am_panup
mapbind pov2down +am_pandown
mapbind joy5 +am_zoomout
mapbind joy6 +am_zoomin

View file

@ -1,4 +1,4 @@
/* Default keybindings for all games */
/* Default keybindings (keypad) for all games */
KP8 +forward
KP5 +back