joyGetDevCaps

Syntax

WORD joyGetDevCaps(wId, lpCaps, wSize)

This function queries a joystick device to determine its capabilities.

Parameters

WORD wId

Identifies the device to be queried. This value is either JOYSTICKID1 or JOYSTICKID2.

LPJOYCAPS lpCaps

Specifies a far pointer to a JOYCAPS data structure. This structure is filled with information about the capabilities of the joystick device.

WORD wSize

Specifies the size of the JOYCAPS structure.

Return Value

Returns JOYERR_NOERROR if successful. Otherwise, returns one of the following error codes:

MMSYSERR_NODRIVER

The joystick driver is not present.

JOYERR_PARMS

The specified joystick device ID wId is invalid.

Comments

Use joyGetNumDevs to determine the number of joystick devices supported by the driver.

See Also

joyGetNumDevs