Enum Class Gamepad.Button
- All Implemented Interfaces:
Serializable, Comparable<Gamepad.Button>, Constable
- Enclosing class:
Gamepad
Represents a digital button on a Gamepad.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBack button.D-pad down button.D-pad left button.D-pad right button.D-pad up button.East Face button.Guide button.Left bumper button.Left Paddle 1 button.Left Paddle 2 button.Left stick button.Miscellaneous 1 button.Miscellaneous 2 button.Miscellaneous 3 button.Miscellaneous 4 button.Miscellaneous 5 button.Miscellaneous 6 button.North Face button.Right bumper button.Right Paddle 1 button.Right Paddle 2 button.Right stick button.South Face button.Start button.Touchpad button.West Face button. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoString()Get the human-friendly name of the button, matching the relevant methods.static Gamepad.ButtonReturns the enum constant of this class with the specified name.static Gamepad.Button[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOUTH_FACE
South Face button. -
EAST_FACE
East Face button. -
WEST_FACE
West Face button. -
NORTH_FACE
North Face button. -
BACK
Back button. -
GUIDE
Guide button. -
START
Start button. -
LEFT_STICK
Left stick button. -
RIGHT_STICK
Right stick button. -
LEFT_BUMPER
Left bumper button. -
RIGHT_BUMPER
Right bumper button. -
DPAD_UP
D-pad up button. -
DPAD_DOWN
D-pad down button. -
DPAD_LEFT
D-pad left button. -
DPAD_RIGHT
D-pad right button. -
MISC_1
Miscellaneous 1 button. -
RIGHT_PADDLE_1
Right Paddle 1 button. -
LEFT_PADDLE_1
Left Paddle 1 button. -
RIGHT_PADDLE_2
Right Paddle 2 button. -
LEFT_PADDLE_2
Left Paddle 2 button. -
TOUCHPAD
Touchpad button. -
MISC_2
Miscellaneous 2 button. -
MISC_3
Miscellaneous 3 button. -
MISC_4
Miscellaneous 4 button. -
MISC_5
Miscellaneous 5 button. -
MISC_6
Miscellaneous 6 button.
-
-
Field Details
-
value
Button value.
-
-
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
-
toString
Get the human-friendly name of the button, matching the relevant methods.Primarily used for automated unit tests.
- Overrides:
toStringin classEnum<Gamepad.Button>- Returns:
- the human-friendly name of the button.
-