Class EitherButtonTrigger
- java.lang.Object
-
- edu.wpi.first.wpilibj2.command.button.Trigger
-
- com.lightningrobotics.common.util.operator.trigger.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
-
-