- Home /
Input.getaxis (and getaxisraw) not returning the correct values with my joysticks
I've developed a small game for a school project on my laptop, with my character controller script revolving around key presses to applying movement, via their axis in the input manager. However, I added my game over to my new system (homebuild arcade) and paired up the axis of each joystick to the input manager, the values returned from the input manager are not as they should be. If I dont touch the joystick, it returns a value of -1, and my character moves left. If I touch the joystick either left or right, my character will move right, as the input.getaxis returns a value of 1. What I would like it to do it to return a value of 0 when the joystick is not pressed left or right, and -1 for left, 1 for right. The movement script still works fine with the keys I had previously bound on the keyboard. The joysticks are arcade joysticks so use 4 micro switches, and are hooked up to an interface. They work perfectly in all other applications and games, it is only unity I have stumbled across this problem in. I also did some research online, were people were adding a couple of .reg files to their registry, however I have tried this and it did not work. Any help would be greatly appreciated, thanks!
Your answer
Follow this Question
Related Questions
Double tap mechanics and axis inputs 3 Answers
horizontal menu + gamepad 1 Answer
Scale gameObject 1 Answer
How do I get a value from Input.GetAxis() ? 1 Answer
I need help with a Controller on a 2D Game for Android with horizontal movement 1 Answer