Class GamepadButton
java.lang.Object
org.wpilib.command2.button.Trigger
org.wpilib.command2.button.GamepadButton
- All Implemented Interfaces:
BooleanSupplier
-
Constructor Summary
ConstructorsConstructorDescriptionGamepadButton(Gamepad gamepad, Gamepad.Button button) Creates a gamepad button for triggering commands. -
Method Summary
Methods inherited from class Trigger
and, debounce, debounce, getAsBoolean, multiPress, negate, onChange, onFalse, onTrue, or, toggleOnFalse, toggleOnTrue, whileFalse, whileTrue
-
Constructor Details
-
GamepadButton
Creates a gamepad button for triggering commands.- Parameters:
gamepad- The gamepad on which the button is located.button- The button
-