Joystick buttons don't work
Hi. I wanted to add joystick control in my game. I connected the joystick, everything works. However, Unity is not reading some of the buttons. This works:
if (Input.GetKey (KeyCode.JoystickButton0)) {
Debug.Log ("Pressed");
}
And this does not work:
if (Input.GetKey (KeyCode.JoystickButton10)) {
Debug.Log ("Pressed");
}
Buttons 0 to 9 work, from 10 upwards nothing happens. Why?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613045507im_/https://answers.unity.com/themes/thub/images/avi.jpg)