10 #include "GenericHID.h" 45 double GetX(JoystickHand hand)
const override;
52 double GetY(JoystickHand hand)
const override;
bool GetStartButton() const
Read the value of the start button on the controller.
Definition: XboxController.cpp:151
bool GetAButtonReleased()
Whether the A button was released since the last check.
Definition: XboxController.cpp:99
Definition: Utility.cpp:119
bool GetBButton() const
Read the value of the B button on the controller.
Definition: XboxController.cpp:103
bool GetBButtonPressed()
Whether the B button was pressed since the last check.
Definition: XboxController.cpp:107
bool GetStartButtonPressed()
Whether the start button was pressed since the last check.
Definition: XboxController.cpp:155
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:19
bool GetBButtonReleased()
Whether the B button was released since the last check.
Definition: XboxController.cpp:111
bool GetXButtonPressed()
Whether the X button was pressed since the last check.
Definition: XboxController.cpp:119
double GetTriggerAxis(JoystickHand hand) const
Get the trigger axis value of the controller.
Definition: XboxController.cpp:35
bool GetYButton() const
Read the value of the Y button on the controller.
Definition: XboxController.cpp:127
XboxController(int port)
Construct an instance of an Xbox controller.
Definition: XboxController.cpp:14
bool GetBumper(JoystickHand hand) const
Read the value of the bumper button on the controller.
Definition: XboxController.cpp:43
double GetY(JoystickHand hand) const override
Get the Y axis value of the controller.
Definition: XboxController.cpp:27
bool GetStickButtonPressed(JoystickHand hand)
Whether the stick button was pressed since the last check.
Definition: XboxController.cpp:75
bool GetYButtonPressed()
Whether the Y button was pressed since the last check.
Definition: XboxController.cpp:131
bool GetXButtonReleased()
Whether the X button was released since the last check.
Definition: XboxController.cpp:123
bool GetStartButtonReleased()
Whether the start button was released since the last check.
Definition: XboxController.cpp:159
bool GetBackButtonPressed()
Whether the back button was pressed since the last check.
Definition: XboxController.cpp:143
bool GetStickButtonReleased(JoystickHand hand)
Whether the stick button was released since the last check.
Definition: XboxController.cpp:83
bool GetXButton() const
Read the value of the X button on the controller.
Definition: XboxController.cpp:115
bool GetBumperReleased(JoystickHand hand)
Whether the bumper was released since the last check.
Definition: XboxController.cpp:59
bool GetStickButton(JoystickHand hand) const
Read the value of the stick button on the controller.
Definition: XboxController.cpp:67
bool GetBumperPressed(JoystickHand hand)
Whether the bumper was pressed since the last check.
Definition: XboxController.cpp:51
bool GetBackButton() const
Whether the Y button was released since the last check.
Definition: XboxController.cpp:139
bool GetBackButtonReleased()
Whether the back button was released since the last check.
Definition: XboxController.cpp:147
GenericHID Interface.
Definition: GenericHID.h:23
bool GetAButton() const
Read the value of the A button on the controller.
Definition: XboxController.cpp:91
bool GetYButtonReleased()
Whether the Y button was released since the last check.
Definition: XboxController.cpp:135
bool GetAButtonPressed()
Whether the A button was pressed since the last check.
Definition: XboxController.cpp:95