Package frc.spectrumLib.gamepads
Enum Class Gamepad.Threshold
- All Implemented Interfaces:
Serializable,Comparable<Gamepad.Threshold>,Constable
- Enclosing class:
- Gamepad
Comparison type used by axis-based
Trigger factories such as Gamepad.leftYTrigger(Threshold, double).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFires when the absolute axis value is greater than the threshold (deadband check).Fires when the axis value is strictly greater than the threshold.Fires when the axis value is strictly less than the threshold. -
Method Summary
Modifier and TypeMethodDescriptionstatic Gamepad.ThresholdReturns the enum constant of this class with the specified name.static Gamepad.Threshold[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GREATER
Fires when the axis value is strictly greater than the threshold. -
LESS
Fires when the axis value is strictly less than the threshold. -
ABS_GREATER
Fires when the absolute axis value is greater than the threshold (deadband check).
-
-
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
-