java.lang.Object java.lang.Enum<GamePad.Button> GamePad.Button
public static enum GamePad.Button
An enum of all of the different buttons most commonly supported.
Enum Constant Summary | |
---|---|
ACTION_DOWN
|
|
ACTION_LEFT
|
|
ACTION_RIGHT
|
|
ACTION_UP
|
|
L1
|
|
L2
|
|
L3
|
|
R1
|
|
R2
|
|
R3
|
|
SELECT
|
|
START
|
Method Summary | |
---|---|
static GamePad.Button |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GamePad.Button[] |
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.Button ACTION_DOWN
public static final GamePad.Button ACTION_LEFT
public static final GamePad.Button ACTION_RIGHT
public static final GamePad.Button ACTION_UP
public static final GamePad.Button L1
public static final GamePad.Button L2
public static final GamePad.Button L3
public static final GamePad.Button R1
public static final GamePad.Button R2
public static final GamePad.Button R3
public static final GamePad.Button SELECT
public static final GamePad.Button START
Method Detail |
---|
public static GamePad.Button 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.Button[] values()
for (GamePad.Button c : GamePad.Button.values()) System.out.println(c);