Enum Class GamepadButton
- All Implemented Interfaces:
Serializable, Comparable<GamepadButton>, Constable
A button of a gamepad, in Xbox positions. On a PlayStation controller,
A is Cross,
B is Circle, X is Square and Y is Triangle; the bumpers are L1 and R1.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe bottom face button (Cross on PlayStation).The right face button (Circle).The small button left of the middle (Share, View, Select).The down direction of the direction pad.The left direction of the direction pad.The right direction of the direction pad.The up direction of the direction pad.The bumper above the left trigger (L1).Pressing the left stick into the pad (L3).The bumper above the right trigger (R1).Pressing the right stick into the pad (R3).The small button right of the middle (Menu, Options, Start).The left face button (Square).The top face button (Triangle). -
Method Summary
Modifier and TypeMethodDescriptionstatic GamepadButtonReturns the enum constant of this class with the specified name.static GamepadButton[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
A
The bottom face button (Cross on PlayStation). -
B
The right face button (Circle). -
X
The left face button (Square). -
Y
The top face button (Triangle). -
LEFT_BUMPER
The bumper above the left trigger (L1). -
RIGHT_BUMPER
The bumper above the right trigger (R1). -
BACK
The small button left of the middle (Share, View, Select). -
START
The small button right of the middle (Menu, Options, Start). -
LEFT_STICK
Pressing the left stick into the pad (L3). -
RIGHT_STICK
Pressing the right stick into the pad (R3). -
DPAD_UP
The up direction of the direction pad. -
DPAD_RIGHT
The right direction of the direction pad. -
DPAD_DOWN
The down direction of the direction pad. -
DPAD_LEFT
The left direction of the direction pad.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-