Class EitherButtonTrigger

  • All Implemented Interfaces:
    java.util.function.BooleanSupplier

    public class EitherButtonTrigger
    extends edu.wpi.first.wpilibj2.command.button.Trigger
    Only performs the action, when either button is pressed. if you want to bind the same command to the same button on two controllers.
    • Constructor Summary

      Constructors 
      Constructor Description
      EitherButtonTrigger​(edu.wpi.first.wpilibj2.command.button.JoystickButton b1, edu.wpi.first.wpilibj2.command.button.JoystickButton b2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean get()  
      • Methods inherited from class edu.wpi.first.wpilibj2.command.button.Trigger

        and, cancelWhenActive, debounce, debounce, getAsBoolean, negate, or, toggleWhenActive, toggleWhenActive, whenActive, whenActive, whenActive, whenInactive, whenInactive, whenInactive, whileActiveContinuous, whileActiveContinuous, whileActiveContinuous, whileActiveOnce, whileActiveOnce
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EitherButtonTrigger

        public EitherButtonTrigger​(edu.wpi.first.wpilibj2.command.button.JoystickButton b1,
                                   edu.wpi.first.wpilibj2.command.button.JoystickButton b2)
    • Method Detail

      • get

        public boolean get()
        Overrides:
        get in class edu.wpi.first.wpilibj2.command.button.Trigger