joySetThreshold

Syntax

WORD joySetThreshold(wId, wThreshold)

This function sets the movement threshold of a joystick device.

Parameters

WORD wId

Identifies the joystick device. This value is either JOYSTICKID1 or JOYSTICKID2.

WORD wThreshold

Specifies the new movement threshold.

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

The movement threshold is the distance the joystick must be moved before a WM_JOYMOVE message is sent to a window that has captured the device.

See Also

joyGetThreshold, joySetCapture