Skip to content
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

Closed
mrbrainsample opened this issue Feb 2, 2013 · 5 comments
Closed

[HL1] No controller/joystick support #1937

mrbrainsample opened this issue Feb 2, 2013 · 5 comments

Comments

@mrbrainsample
Copy link

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.

@alfred-valve
Copy link
Contributor

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?

@ghost ghost assigned alfred-valve Feb 2, 2013
@mrbrainsample
Copy link
Author

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

@lunarcloud
Copy link

I'm using a generic xbox controller, clicked the checkbox. Nothing.

@kisak-valve kisak-valve transferred this issue from ValveSoftware/steam-for-linux Nov 12, 2018
@FindTheBorealis
Copy link

This needs retesting now that Half-Life's input code received a revamp for full Steam Input compatibility in the 25th anniversary update.

@mrbrainsample
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants