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);
}
public void getDevCaps(int joyid, JoyCaps pjc);
Queries a joystick to determine its capabilities.
Return Value:
No return value.
Parameter | Description |
joyid
| The joystick identifier.
|
pic
| The JoyCaps object that contains the joystick capabilities.
|
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.
Parameter | Description |
joyid
| The joystick identifier.
|
public String getDevCapsProductName(int joyid);
Queries a joystick for its manufacturer's product name.
Return Value:
Returns The joystick model name.
Parameter | Description |
joyid
| The joystick identifier.
|
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.
Parameter | Description |
joyid
| The joystick identifier.
|
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.
public void getPos(int joyid, JoyInfo info);
Queries a joystick for its position and button status.
Return Value:
No return value.
Parameter | Description |
joyid
| The joystick identifier.
|
info
| The JoyInfo object that contains extended position information and button status of the joystick.
|