Package edu.wpi.first.wpilibj
Enum Class StadiaController.Button
- All Implemented Interfaces:
Serializable
,Comparable<StadiaController.Button>
,Constable
- Enclosing class:
- StadiaController
Represents a digital button on a StadiaController.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
Get the human-friendly name of the button, matching the relevant methods.static StadiaController.Button
Returns the enum constant of this class with the specified name.static StadiaController.Button[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kA
A button. -
kB
B button. -
kX
X button. -
kY
Y button. -
kLeftBumper
Left bumper button. -
kRightBumper
Right bumper button. -
kLeftStick
Left stick button. -
kRightStick
Right stick button. -
kEllipses
Ellipses button. -
kHamburger
Hamburger button. -
kStadia
Stadia button. -
kRightTrigger
Right trigger button. -
kLeftTrigger
Left trigger button. -
kGoogle
Google button. -
kFrame
Frame 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. This is done by stripping the leading `k`, and appending `Button`.Primarily used for automated unit tests.
- Overrides:
toString
in classEnum<StadiaController.Button>
- Returns:
- the human-friendly name of the button.
-