Microsoft SDK for Java

getNumDevs

This method of the DirectInput Class queries the joystick driver for the number of joysticks it supports.

Syntax

public int getNumDevs();

Return Value

Returns the number of joysticks the driver supports; otherwise, returns zero if no driver is present.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.