10 #include "GenericHID.h" 31 double GetX(JoystickHand hand)
const override;
32 double GetY(JoystickHand hand)
const override;
bool GetStartButton() const
Read the value of the start button on the controller.
Definition: XboxController.cpp:291
bool GetAButtonReleased()
Whether the A button was released since the last check.
Definition: XboxController.cpp:172
bool GetBButton() const
Read the value of the B button on the controller.
Definition: XboxController.cpp:181
bool GetBButtonPressed()
Whether the B button was pressed since the last check.
Definition: XboxController.cpp:190
bool GetStartButtonPressed()
Whether the start button was pressed since the last check.
Definition: XboxController.cpp:300
Handle input from Xbox 360 or Xbox One controllers connected to the Driver Station.
Definition: XboxController.h:23
double GetX(JoystickHand hand) const override
Get the X axis value of the controller.
Definition: XboxController.cpp:32
bool GetBButtonReleased()
Whether the B button was released since the last check.
Definition: XboxController.cpp:199
bool GetXButtonPressed()
Whether the X button was pressed since the last check.
Definition: XboxController.cpp:217
double GetTriggerAxis(JoystickHand hand) const
Get the trigger axis value of the controller.
Definition: XboxController.cpp:58
bool GetYButton() const
Read the value of the Y button on the controller.
Definition: XboxController.cpp:235
XboxController(int port)
Construct an instance of an Xbox controller.
Definition: XboxController.cpp:22
bool GetBumper(JoystickHand hand) const
Read the value of the bumper button on the controller.
Definition: XboxController.cpp:71
double GetY(JoystickHand hand) const override
Get the Y axis value of the controller.
Definition: XboxController.cpp:45
bool GetStickButtonPressed(JoystickHand hand)
Whether the stick button was pressed since the last check.
Definition: XboxController.cpp:127
bool GetYButtonPressed()
Whether the Y button was pressed since the last check.
Definition: XboxController.cpp:244
bool GetXButtonReleased()
Whether the X button was released since the last check.
Definition: XboxController.cpp:226
bool GetStartButtonReleased()
Whether the start button was released since the last check.
Definition: XboxController.cpp:309
bool GetBackButtonPressed()
Whether the back button was pressed since the last check.
Definition: XboxController.cpp:272
bool GetStickButtonReleased(JoystickHand hand)
Whether the stick button was released since the last check.
Definition: XboxController.cpp:141
bool GetXButton() const
Read the value of the X button on the controller.
Definition: XboxController.cpp:208
bool GetBumperReleased(JoystickHand hand)
Whether the bumper was released since the last check.
Definition: XboxController.cpp:99
bool GetStickButton(JoystickHand hand) const
Read the value of the stick button on the controller.
Definition: XboxController.cpp:113
bool GetBumperPressed(JoystickHand hand)
Whether the bumper was pressed since the last check.
Definition: XboxController.cpp:85
bool GetBackButton() const
Read the value of the back button on the controller.
Definition: XboxController.cpp:263
bool GetBackButtonReleased()
Whether the back button was released since the last check.
Definition: XboxController.cpp:281
GenericHID Interface.
Definition: GenericHID.h:23
bool GetAButton() const
Read the value of the A button on the controller.
Definition: XboxController.cpp:154
bool GetYButtonReleased()
Whether the Y button was released since the last check.
Definition: XboxController.cpp:253
bool GetAButtonPressed()
Whether the A button was pressed since the last check.
Definition: XboxController.cpp:163