joyReleaseCapture

Syntax

WORD joyReleaseCapture(wId)

This function releases the capture set by joySetCapture on the specified joystick device.

Parameters

WORD wId

Identifies the joystick device to be released. This value is either JOYSTICKID1 or JOYSTICK2.

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.

See Also

joySetCapture