ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
649 stars 75 forks source link

Wrong 360controller-linux.cfg supplied for Half-Life 2 and episodes #2710

Open xDShot opened 5 years ago

xDShot commented 5 years ago

I believe 360controller-linux.cfg gamepad config supplied with Half-Life 2 on Linux uses TF2 key bindings, not HL2 one.

xDShot commented 5 years ago

Made my own based on official Xbox 360 version bindings, feel free to copy-paste for your needs:

//
joy_name "Game controller"

bind "L_TRIGGER" "+attack2" //Z AXIS POS
bind "R_TRIGGER" "+attack" //Z AXIS NEG

bind "A_BUTTON" "+jump" // JOY1
bind "X_BUTTON" "+reload" // JOY2
bind "B_BUTTON" "+use" // JOY3
bind "Y_BUTTON" "impulse 100" // JOY4, flashlight

bind "L_SHOULDER" "+speed" // JOY5
bind "R_SHOULDER" "phys_swap" // JOY6

bind "BACK" "impulse 50" // JOY7, squad command

bind "STICK2" "+zoom" // JOY10
bind "STICK1" "toggle_duck" // JOY9

bind "START" "pause" // JOY8

bind "POV_UP" "slot1"
bind "POV_RIGHT" "slot2"
bind "POV_DOWN" "slot3"
bind "POV_LEFT" "slot4"
Lourens-Rich commented 5 years ago

Please accept this change.