0
\$\begingroup\$

What should I change in the input manager to enable me to use a joystick? I have a usb cable to connect the joystick to the computer but how do I set up the controls?

\$\endgroup\$
2
\$\begingroup\$

You can set up new axes for joysticks in the input manager by using "Joystick Axis" for the Type. The left stick would need two entries in the input manager, one horizontal (using the X axis), and one vertical (using the Y axis). The right joystick , using the 3rd and 4th axes. To use this in scripting, you need to get through Input.GetAxis("Joystick Left"), where "Joystick Left" is the name of the axis created in the input manager.

enter image description here

Unity already has some predefined joystick settings , you can try if those work for you, else you can make new axes as per your need.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.