The joySetThreshold function sets the movement threshold of a joystick.
Returns JOYERR_NOERROR if successful or one of the following error values.
MMSYSERR_NODRIVER - The joystick driver is not present. JOYERR_PARMS - The specified joystick device identifier uJoyID is invalid.
The movement threshold is the distance the joystick must be moved before a joystick position-change message (MM_JOY1MOVE, MM_JOY1ZMOVE, MM_JOY2MOVE, or MM_JOY2ZMOVE) is sent to a window that has captured the device. The threshold is initially zero.
Winmm Class | Tao.Platform.Windows Namespace