Quasics2020Code/Gladys/src/main/cpp/RobotContainer.cpp
//
// Configuring buttons on the driver's controller.
//
Configuring buttons on the driver's controller.
Configuring buttons on the driver ' s controller .
void RobotContainer::ConfigureDriverButtonBindings() {
  namespace LogitechGamePad = OIConstants::LogitechGamePad;
  using frc2::JoystickButton;
  JoystickButton(&driverJoystick, LogitechGamePad::LeftShoulder)
      .WhenPressed(enableTurboMode)
      .WhenReleased(disableTurboMode);
  JoystickButton(&driverJoystick, LogitechGamePad::RightShoulder)
      .WhenPressed(frontIsForward);
  std::cout << "Completed button binding configuration (Driver)" << std::endl;
}
void RobotContainer :: ConfigureDriverButtonBindings ( ) { namespace LogitechGamePad = OIConstants :: LogitechGamePad ; using frc2 :: JoystickButton ; JoystickButton ( & driverJoystick , LogitechGamePad :: LeftShoulder ) . WhenPressed ( enableTurboMode ) . WhenReleased ( disableTurboMode ) ; JoystickButton ( & driverJoystick , LogitechGamePad :: RightShoulder ) . WhenPressed ( frontIsForward ) ; std :: cout << " " << std :: endl ; }
Configuring buttons on the driver's controller.
Configuring buttons on the driver ' s controller .