Enum Class Gamepad.Threshold

java.lang.Object
java.lang.Enum<Gamepad.Threshold>
frc.spectrumLib.gamepads.Gamepad.Threshold
All Implemented Interfaces:
Serializable, Comparable<Gamepad.Threshold>, Constable
Enclosing class:
Gamepad

public static enum Gamepad.Threshold extends Enum<Gamepad.Threshold>
Comparison type used by axis-based Trigger factories such as Gamepad.leftYTrigger(Threshold, double).
  • Enum Constant Details

    • GREATER

      public static final Gamepad.Threshold GREATER
      Fires when the axis value is strictly greater than the threshold.
    • LESS

      public static final Gamepad.Threshold LESS
      Fires when the axis value is strictly less than the threshold.
    • ABS_GREATER

      public static final Gamepad.Threshold ABS_GREATER
      Fires when the absolute axis value is greater than the threshold (deadband check).
  • Method Details

    • values

      public static Gamepad.Threshold[] 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

      public static Gamepad.Threshold valueOf(String name)
      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 name
      NullPointerException - if the argument is null