Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class DirectInput

public class DirectInput implements IDirectInput
{
  // Methods
  public void getDevCaps(int joyid, JoyCaps pjc);
  public String getDevCapsOEMVxd(int joyid);
  public String getDevCapsProductName(int joyid);
  public String getDevCapsRegKey(int joyid);
  public int getNumDevs();
  public void getPos(int joyid, JoyInfo info);
}

Methods

getDevCaps

public void getDevCaps(int joyid, JoyCaps pjc);

Queries a joystick to determine its capabilities.

Return Value:

No return value.

ParameterDescription
joyid The joystick identifier.
pic The JoyCaps object that contains the joystick capabilities.

getDevCapsOEMVxd

public String getDevCapsOEMVxd(int joyid);

Queries a joystick for the name of its original virtual device driver.

Return Value:

Returns the name of the virtual device driver.

ParameterDescription
joyid The joystick identifier.

getDevCapsProductName

public String getDevCapsProductName(int joyid);

Queries a joystick for its manufacturer's product name.

Return Value:

Returns The joystick model name.

ParameterDescription
joyid The joystick identifier.

getDevCapsRegKey

public String getDevCapsRegKey(int joyid);

Queries a joystick for the Microsoft® Windows® Registry key, where its capability information is stored.

Return Value:

Returns the name of the registry key.

ParameterDescription
joyid The joystick identifier.

getNumDevs

public int getNumDevs();

Queries the joystick driver for the number of joysticks it supports.

Return Value:

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

getPos

public void getPos(int joyid, JoyInfo info);

Queries a joystick for its position and button status.

Return Value:

No return value.

ParameterDescription
joyid The joystick identifier.
info The JoyInfo object that contains extended position information and button status of the joystick.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.