-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HL1] No controller/joystick support #1937
Comments
We use SDL for joystick support, SDL is cross platform. The joystick support under Half-Life is pretty basic, have you checked that you set it up properly and have the appropriate OS drivers for your stick? |
The controller is working fine, and a basic SDL joystick test recognizes all the axes, buttons, and POV switch. Also, it works perfectly in TF2. HL/CS shows all the joystick related cvars, and the joystick.cfg config that used to work fine with Windows HL does get loaded, but no input ever registers. For fun, here's my joystick.cfg: // Joystick settings for Half-Life-based games joystick "1" joyadvanced "1" joyname "Saitek Cyborg V.1 Stick" joyadvaxisx 3 joyadvaxisy 1 joyadvaxisz 0 joyadvaxisr 4 joyadvaxisu 0 joyadvaxisv 0 joyforwardsensitivity "-1" joyforwardthreshold "0.150" joypitchsensitivity "1" joypitchthreshold "0.150" joysidesensitivity "1" joysidethreshold "0.150" joyyawsensitivity "-1.8" joyyawthreshold "0.300" //joywwhack1 "0" //joywwhack2 "0" joyadvancedupdate |
I'm using a generic xbox controller, clicked the checkbox. Nothing. |
This needs retesting now that Half-Life's input code received a revamp for full Steam Input compatibility in the 25th anniversary update. |
Tested with recently updated Half-Life. As long as SDL_GAMECONTROLLERCONFIG is set correctly, joystick works. I can't bind buttons through the interface, but I can still do it through cfg files, so that works for me. Closing 10+ year old bug report! Going to re-play a 25 year old game! |
The cvars and commands are there, but the GoldSrc games (Half-Life and Counter-Strike) don't detect any connected controllers.
Not sure if this is a "bug" or "not implemented feature", but controller supports is perfect in the Windows version, so parity would mean that it works under Linux, too.
The text was updated successfully, but these errors were encountered: