java.lang.Object java.lang.Enum<GamePad.Axis> GamePad.Axis
public static enum GamePad.Axis
The different types of axis on the joypad.
You can use these to state which axis you are finding the direction for.
Enum Constant Summary | |
---|---|
DPAD
|
|
LEFT
|
|
RIGHT
|
Method Summary | |
---|---|
static GamePad.Axis |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GamePad.Axis[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GamePad.Axis DPAD
public static final GamePad.Axis LEFT
public static final GamePad.Axis RIGHT
Method Detail |
---|
public static GamePad.Axis valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static GamePad.Axis[] values()
for (GamePad.Axis c : GamePad.Axis.values()) System.out.println(c);