DECLARE SUB DQBpollJoy (BYVAL JoyNum)
JoyNum - Joystick number to retrieve information of
none
This function must be always called before calling DQBjoyMove or DQBjoyFire, as it updates the internal joystick variables. The JoyNum parameter must be 0 or 1 for joystick 1 and 2; there're two contants for this purpose, as explained into appendix A.
This is a relatively slow operation; in addition, if specified joystick is not connected, this will be even slower, so it is recommended that you check if the joystick is available before calling DQBpollJoy.
See DQBjoyMove example