ValveSoftware / Source-1-Games

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

[HL2] Custom button mapping doesn't remain after restart if using a controller. #781

Open GarlandKey opened 11 years ago

GarlandKey commented 11 years ago

System Info: http://pastebin.com/TV7kQ27m Controller: Logitech Dual Action Issue: If I set custom key mapping for my keyboard and I restart Half-Life 2, it will remain how I set it. However, if I set custom button mapping for my controller, it will not remain when I restart.

alfred-valve commented 11 years ago

If you edit the cfg/360controller.cfg and cfg/360controller-linux.cfg files you can save your bindings changes (as a work-around).

GarlandKey commented 11 years ago

@alfred-valve Okay, I've read into this a bit and I can't find any documentation on the options that are available. For instance, I am unable to define flashlight because I'm not sure if it is, "+flashlight", or "toggle_flashlight", or something else. For the time being I will experiment. Please hit me back if you have any useful links. Your work is appreciated.

GarlandKey commented 11 years ago

flashlight is "impulse 100" for anyone who might be looking for the same info.

GarlandKey commented 11 years ago

Here is my configuration for the Logitech Dual Action Controller

NOTE. Create a new file in this location: ~/.local/share/Steam/SteamApps/common/Half-Life 2/hl2/cfg/ Since I have a Logitech Dual Action controller, I named mine, "lda.cfg" You can load the file by entering the in-game console and entering, "exec lda.cfg".

joy_name "Logitech Dual Action" joy_advanced 1 joy_advaxisx 3 joy_advaxisy 1 joy_advaxisz 0 joy_advaxisr 2 joy_advaxisu 4 joy_advaxisv 0 joy_forwardsensitivity -1 joy_sidesensitivity 1 joy_pitchsensitivity 1.0 joy_yawsensitivity -1.25 joy_autoaimdampenrange 0.85 joy_autoaimdampen 0.5 joy_lowend 0.65 joy_lowmap 0.15 joy_accelscale 1.4 joy_response_move 5 joy_response_look 1 joyadvancedupdate crosshair 1 hud_draw_fixed_reticle 0

bind "A_BUTTON" "+jump" bind "B_BUTTON" "toggle_duck" bind "X_BUTTON" "+use" bind "Y_BUTTON" "+reload"

bind "L_TRIGGER" "+speed" bind "L_SHOULDER" "+jump" bind "R_TRIGGER" "+attack" bind "R_SHOULDER" "+attack2"

bind "START" "pause"

bind "STICK1" "toggle_zoom" // Right Stick Down bind "STICK2" "impulse 100" // Left Stick Down

bind "POV_UP" "slot1" bind "POV_RIGHT" "slot2" bind "POV_DOWN" "slot3" bind "POV_LEFT" "slot4"

joystick 1 sk_autoaim_mode 2 hud_fastswitch 2 +jlook

player_limit_jump_speed 0

ReticentRobot commented 10 years ago

Just wanted to add that this is an issue with Portal also (using SteamOS). I would LOVE full gamepad support added to HL2/Portal/TF2 for BPM.