Enum Class NiDsPS5Controller.Button
- All Implemented Interfaces:
Serializable, Comparable<NiDsPS5Controller.Button>, Constable
- Enclosing class:
NiDsPS5Controller
Represents a digital button on a NiDsPS5Controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCircle button.Create button.Cross button.Left trigger 1 button.Left trigger 2 button.L3 (left stick) button.Options button.PlayStation button.Right trigger 1 button.Right trigger 2 button.R3 (right stick) button.Square button.Touchpad button.Triangle button. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoString()Get the human-friendly name of the button, matching the relevant methods.static NiDsPS5Controller.ButtonReturns the enum constant of this class with the specified name.static NiDsPS5Controller.Button[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SQUARE
Square button. -
CROSS
Cross button. -
CIRCLE
Circle button. -
TRIANGLE
Triangle button. -
L1
Left trigger 1 button. -
R1
Right trigger 1 button. -
L2
Left trigger 2 button. -
R2
Right trigger 2 button. -
CREATE
Create button. -
OPTIONS
Options button. -
L3
L3 (left stick) button. -
R3
R3 (right stick) button. -
PS
PlayStation button. -
TOUCHPAD
Touchpad button.
-
-
Field Details
-
value
public final int valueButton 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<NiDsPS5Controller.Button>- Returns:
- the human-friendly name of the button.
-