- Home /
trouble getting inputs from six axis in the joystick
I have a joystick which have six axis to generate inputs and I want to use them all in my project. What I'm developing is a car game. When I connect it, without configuration I could drive the vehicle using the already existing horizontal and vertical axis, that is driving forwards, backwards, left and right. But when I try to use the other 4 axis after making new axis from the input manager, it never seem to detect them. I tried changing the axis from X to Y and 3rd axis to get all the inputs respectively and tried get the inputs using
Input.GetAxis ("NewAxis");
Is there something I have to do in order to get my expected result? any help would be greatly appreciated. thank you.
Answer by RetepTrun · Dec 16, 2013 at 01:30 PM
It takes a long time to figure out what each thing axis is called. Lots of trial and error if your using a gamepad. your code is right. the trial and error is in the input manager
edit
project settings
input
name your axis
type: joystick axis
axis (trial and error)
joy num (trial and error)
I had to go through about every combo of the last 2 a few times
Thank you it worked!! I thought using "get motion from all joysticks" works everywhere. never messed with the joy num. changing that value worked straight away. thanks alot!!