- Home /
Joystick dpad working But Buttons not working
I was able to get the dpad and even the analog sticks working by setting them up in the Input Manager. But I do not know how to get the buttons working. I do not see anything about joystick buttons in the Input Manager.
Searched the Scripting Reference but Im still confused about it. All I found was KeyCode.JoyStickButton1() which I dont know how to use.
Comment
Best Answer
Answer by jb777 · May 23, 2011 at 03:43 AM
Took me a while to find this
Input.GetKeyDown("joystick button 1")
This works. The string for joystick buttons did not seem obvious from the documentation.
The string "joystick button 1" can also be used in the input manager.