public class InputDevice
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InputDevice.DeviceAxis |
static class |
InputDevice.DeviceButton |
Modifier and Type | Field and Description |
---|---|
static InputDevice |
JOYSTICK1 |
static InputDevice |
JOYSTICK2 |
Constructor and Description |
---|
InputDevice(java.lang.String id,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
InputDevice.DeviceAxis |
axis(Axis a)
Return the InputDevice-specific version of the specified
Axis.
|
InputDevice.DeviceButton |
button(Button b)
Return the InputDevice-specific version of the specified
Button.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId() |
java.lang.String |
getName() |
int |
hashCode() |
static InputDevice |
joystick(int id)
Creates a new logical joystick with the specified ID.
|
java.lang.String |
toString() |
public static final InputDevice JOYSTICK1
public static final InputDevice JOYSTICK2
public static InputDevice joystick(int id)
public InputDevice.DeviceButton button(Button b)
public InputDevice.DeviceAxis axis(Axis a)
public java.lang.String getId()
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object