Skip to content

Commit

Permalink
Add more gamepad bindings for Joystick API devices. Most beneficial f…
Browse files Browse the repository at this point in the history
…or Steam Deck and Linux users
  • Loading branch information
nashmuhandes authored and coelckers committed Feb 4, 2024
1 parent f1db369 commit d744f8f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions wadsrc/static/engine/commonbinds.txt
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion wadsrc/static/engine/leftbinds.txt
@@ -1,4 +1,4 @@
/* Default keybindings for all games */
/* Default keybindings (keypad) for all games */

KP8 +forward
KP5 +back
Expand Down

0 comments on commit d744f8f

Please sign in to comment.