public enum JoystickButton extends java.lang.Enum<JoystickButton>
JoystickButton
enumeration contanis all buttons that can be pressed on the joysticks.Enum Constant and Description |
---|
A |
B |
DPAD_DOWN |
DPAD_LEFT |
DPAD_RIGHT |
DPAD_UP |
LEFT_BUMPER |
LEFT_STICK |
RIGHT_BUMPER |
RIGHT_STICK |
X |
Y |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static JoystickButton |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JoystickButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JoystickButton A
public static final JoystickButton B
public static final JoystickButton X
public static final JoystickButton Y
public static final JoystickButton DPAD_UP
public static final JoystickButton DPAD_DOWN
public static final JoystickButton DPAD_LEFT
public static final JoystickButton DPAD_RIGHT
public static final JoystickButton LEFT_STICK
public static final JoystickButton RIGHT_STICK
public static final JoystickButton LEFT_BUMPER
public static final JoystickButton RIGHT_BUMPER
public static JoystickButton[] values()
for (JoystickButton c : JoystickButton.values()) System.out.println(c);
public static JoystickButton 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<JoystickButton>