- Home /
joystick axis input name
Hello everyone,
I am trying to connect my joystick to develop a small unity3d game. So I accessed the 'Input Manager' and defined all the BUTTON inputs ( joystick button 0,joystick button 1...). However I have an issue regarding the axis inputs. I cannot find the right string input in the "Positive Button" field. I have tried to change the "Type" to "Joystick Axis" but it didn't work.
Here is a picture about how i detected 1 Button input and couldn't detect the Axis input.
So can anyone help me of how can i detect the X/Y Axis in unity3d to make an action when the axis is pressed??
Thanks in advance.
Answer by Hainsaw · Apr 11, 2021 at 06:56 PM
I don't know how it differs from controller to controller, but you may not need to include a string for positive/negative/etc fields at all. I'm using an Xbox360 controller in Unity 2021 and i set the Type to Joystick Axis and then selected the proper Axis in the next field. You do have to know which axis to use though, for instance, left joystick on Xbox360 controller uses the 4th and 5th axes.
So you can find what you need in the dropdown, you just have to know how your controller is mapped, afaik.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to change the speed of the gameobject moving on the itween path 1 Answer
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
Problem building Android Marshmallow GPS Plugin (Error building Player: CommandInvokationFailure) 0 Answers