Log in

View Full Version : Joystick Buttons


Redstone
27-01-2012, 17:23
How would i make an if statement to check the status of the buttons on the joystick.

if (joystick button 9 is pressed){
//do something
}

Many Thanks :)

connor.worley
27-01-2012, 17:31
The getRawButton method is what you are looking for.

Redstone
27-01-2012, 17:36
Thanks you answered my question. It worked :)