DQBjoyFire
FUNCTION

Prototype

DECLARE FUNCTION DQBjoyFire (BYVAL JoyNum, BYVAL Button)

Parameters

JoyNum - Joystick number to retrieve status of

Button - Button number to check

Returns

True if specified button of specified joystick is pressed, otherwise false

Description

This function is used to check if a button of a specified joystick is being pressed. About the parameter JoyNum, please refer to the DQBjoyDetected function. The other parameter, Button, can be 0 for button A, or 1 for button B. If you're handling a 4-buttons joystick, you can also use 2 and 3 for buttons 3 and 4. As for the joystick number, also the buttons have constants named BUTA, BUTB, BUTC and BUTD declared into the file DIRECTQB.BI, and explained into appendix A.

Notes:

none

Example

See DQBjoyMove example