Enum Class NiDsStadiaController.Button
- All Implemented Interfaces:
Serializable, Comparable<NiDsStadiaController.Button>, Constable
- Enclosing class:
NiDsStadiaController
Represents a digital button on a NiDsStadiaController.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA button.B button.Ellipses button.Frame button.Google button.Hamburger button.Left bumper button.Left stick button.Left trigger button.Right bumper button.Right stick button.Right trigger button.Stadia button.X button.Y button. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoString()Get the human-friendly name of the button, matching the relevant methods.static NiDsStadiaController.ButtonReturns the enum constant of this class with the specified name.static NiDsStadiaController.Button[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A
A button. -
B
B button. -
X
X button. -
Y
Y button. -
LEFT_BUMPER
Left bumper button. -
RIGHT_BUMPER
Right bumper button. -
LEFT_STICK
Left stick button. -
RIGHT_STICK
Right stick button. -
ELLIPSES
Ellipses button. -
HAMBURGER
Hamburger button. -
STADIA
Stadia button. -
RIGHT_TRIGGER
Right trigger button. -
LEFT_TRIGGER
Left trigger button. -
GOOGLE
Google button. -
FRAME
Frame 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<NiDsStadiaController.Button>- Returns:
- the human-friendly name of the button.
-