Tao.Platform.Windows SDK Documentation

Winmm.joyGetNumDevs Method 

The joyGetNumDevs function queries the joystick driver for the number of joysticks it supports.

[Visual Basic]
Public Shared Function joyGetNumDevs() As Integer
[C#]
public static int joyGetNumDevs();

Return Value

The joyGetNumDevs function returns the number of joysticks supported by the current driver or zero if no driver is installed.

Remarks

Use the joyGetPos function to determine whether a given joystick is physically attached to the system. If the specified joystick is not connected, joyGetPos returns a JOYERR_UNPLUGGED error value.

See Also

Winmm Class | Tao.Platform.Windows Namespace