Joystick services include functions to query each joystick for its capabilities, to poll each joystick for position and button information, and to receive messages in response to joystick events. Your application can use the following joystick functions to accept input from one or two joysticks:
joyGetNumDevs
Returns the number of joysticks supported by the joystick services.
joyGetDevCaps
Returns joystick capabilities.
joyGetPos
Returns joystick position and button information.
joySetCapture
Causes joystick input to be sent to a specified window at regular intervals or when the joystick state changes.
joyReleaseCapture
Releases the joystick captured using joySetCapture.
joyGetThreshold
Returns the movement threshold of a joystick.
joySetThreshold
Sets the movement threshold of a joystick.