WORD joySetThreshold(wId, wThreshold)
This function sets the movement threshold of a joystick device.
WORD wId
Identifies the joystick device. This value is either JOYSTICKID1 or JOYSTICKID2.
WORD wThreshold
Specifies the new movement threshold.
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.
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.
joyGetThreshold, joySetCapture