DQBpollJoy
SUB

Prototype

DECLARE SUB DQBpollJoy (BYVAL JoyNum)

Parameters

JoyNum - Joystick number to retrieve information of

Returns

none

Description

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.

Notes:

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.

Example

See DQBjoyMove example