getButtonJoystick()

Returns the current state of a given button on a given joystick.

Syntax:
variable = getButtonJoystick( index , button )

Example: