Gets the state of the specified button. You should call the "read" method before get the state of a button.
Syntax
joystick.buttonState(index)
Parameters
Returns
Boolean. If the button is pressed, returns true.
Example
function readJoystick()
{
joy[0].read();
trace(joy[0].buttonState[0]);
}
Application.setInterval(readJoystick, 50);