Button binding
WPI description link
- Open file
RobotContainer.java
- Class
RobotContainer()
calls class configureButtonBindings()
- Here, define you
trigger/button-command mappings
- Triggers can be created via the
- {@link Trigger#Trigger(java.util.function.BooleanSupplier)} constructor with an arbitrary predicate, or via the named factories in
- {@link edu.wpi.first.wpilibj2.command.button.CommandGenericHID}'s subclasses for {@link
- CommandXboxController Xbox}/{@link edu.wpi.first.wpilibj2.command.button.CommandPS4Controller PS4} controllers or
- {@link edu.wpi.first.wpilibj2.command.button.CommandJoystick Flight joysticks}.