Giter VIP home page Giter VIP logo

Comments (5)

mrbrainsample avatar mrbrainsample commented on August 24, 2024 1

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!

from halflife.

alfred-valve avatar alfred-valve commented on August 24, 2024

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?

from halflife.

mrbrainsample avatar mrbrainsample commented on August 24, 2024

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

from halflife.

lunarcloud avatar lunarcloud commented on August 24, 2024

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

from halflife.

FindTheBorealis avatar FindTheBorealis commented on August 24, 2024

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

from halflife.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.