Tao.Platform.Windows SDK Documentation

Winmm.joySetThreshold Method 

The joySetThreshold function sets the movement threshold of a joystick.

[Visual Basic]
Public Shared Function joySetThreshold( _
   ByVal uJoyID As Integer, _
   ByVal uThreshold As Integer _
) As Integer
[C#]
public static int joySetThreshold(
   int uJoyID,
   int uThreshold
);

Parameters

uJoyID
Identifier of the joystick. Valid values for uJoyID range from zero (JOYSTICKID1) to 15, except for Windows NT 4.0. For Windows NT 4.0, valid values are limited to JOYSTICKID1 and JOYSTICKID2.
uThreshold
New movement threshold.

Return Value

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.

Remarks

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.

See Also

Winmm Class | Tao.Platform.Windows Namespace