10 #include "frc/GenericHID.h"
45 double GetX(JoystickHand hand)
const override;
52 double GetY(JoystickHand hand)
const override;
Definition: SPIAccelerometerSim.h:18
bool GetStartButton() const
Read the value of the start button on the controller.
bool GetYButtonPressed()
Whether the Y button was pressed since the last check.
Handle input from Xbox 360 or Xbox One controllers connected to the Driver Station.
Definition: XboxController.h:23
bool GetBButtonReleased()
Whether the B button was released since the last check.
bool GetYButtonReleased()
Whether the Y button was released since the last check.
bool GetStartButtonReleased()
Whether the start button was released since the last check.
double GetX(JoystickHand hand) const override
Get the X axis value of the controller.
bool GetStickButton(JoystickHand hand) const
Read the value of the stick button on the controller.
bool GetBackButton() const
Whether the Y button was released since the last check.
bool GetStickButtonPressed(JoystickHand hand)
Whether the stick button was pressed since the last check.
bool GetStartButtonPressed()
Whether the start button was pressed since the last check.
bool GetBackButtonPressed()
Whether the back button was pressed since the last check.
bool GetBButtonPressed()
Whether the B button was pressed since the last check.
double GetTriggerAxis(JoystickHand hand) const
Get the trigger axis value of the controller.
double GetY(JoystickHand hand) const override
Get the Y axis value of the controller.
bool GetBButton() const
Read the value of the B button on the controller.
bool GetAButtonPressed()
Whether the A button was pressed since the last check.
bool GetBumperPressed(JoystickHand hand)
Whether the bumper was pressed since the last check.
bool GetXButton() const
Read the value of the X button on the controller.
bool GetBumper(JoystickHand hand) const
Read the value of the bumper button on the controller.
bool GetAButton() const
Read the value of the A button on the controller.
bool GetBumperReleased(JoystickHand hand)
Whether the bumper was released since the last check.
bool GetAButtonReleased()
Whether the A button was released since the last check.
bool GetXButtonPressed()
Whether the X button was pressed since the last check.
bool GetBackButtonReleased()
Whether the back button was released since the last check.
bool GetXButtonReleased()
Whether the X button was released since the last check.
GenericHID Interface.
Definition: GenericHID.h:23
bool GetYButton() const
Read the value of the Y button on the controller.
bool GetStickButtonReleased(JoystickHand hand)
Whether the stick button was released since the last check.
XboxController(int port)
Construct an instance of an Xbox controller.