JoystickButton()
Syntax
Result = JoystickButton(#Joystick, ButtonNumber)Description
Returns the #Joystick button state. The first #Joystick number starts at 0. The number of available joysticks is returned by the InitJoystick() function.
'Result' will be 0 if the specified button is not pressed, else it returns a non null value. Any number of buttons may be pressed at the same time. ExamineJoystick() must be called before this function is used, in order to update the actual button's state. The first button number starts at 1.
Supported OS
All