Check if a joystick button is pressed.
If the joystick is not connected, this function returns false.
Index of the joystick.
Button to check.
True if the button is pressed, false otherwise.
See Implementation
Check if a joystick button is pressed.
If the joystick is not connected, this function returns false.