10 #include "ErrorBase.h" 11 #include "GamepadBase.h" 34 double GetX(JoystickHand hand)
const override;
35 double GetY(JoystickHand hand)
const override;
37 bool GetBumper(JoystickHand hand)
const override;
bool GetStartButton() const
Read the value of the start button on the controller.
Definition: XboxController.cpp:142
bool GetBButton() const
Read the value of the B button on the controller.
Definition: XboxController.cpp:110
Handle input from Xbox 360 or Xbox One controllers connected to the Driver Station.
Definition: XboxController.h:26
double GetX(JoystickHand hand) const override
Get the X axis value of the controller.
Definition: XboxController.cpp:35
virtual double GetTriggerAxis(JoystickHand hand) const
Get the trigger axis value of the controller.
Definition: XboxController.cpp:88
bool GetYButton() const
Read the value of the Y button on the controller.
Definition: XboxController.cpp:126
Provide access to the network communication data to / from the Driver Station.
Definition: DriverStation.h:28
XboxController(int port)
Construct an instance of an Xbox controller.
Definition: XboxController.cpp:24
double GetY(JoystickHand hand) const override
Get the Y axis value of the controller.
Definition: XboxController.cpp:48
bool GetXButton() const
Read the value of the X button on the controller.
Definition: XboxController.cpp:118
bool GetStickButton(JoystickHand hand) const override
Read the value of the stick button on the controller.
Definition: XboxController.cpp:75
bool GetBackButton() const
Read the value of the back button on the controller.
Definition: XboxController.cpp:134
Base class for most objects.
Definition: ErrorBase.h:74
bool GetBumper(JoystickHand hand) const override
Read the value of the bumper button on the controller.
Definition: XboxController.cpp:61
bool GetAButton() const
Read the value of the A button on the controller.
Definition: XboxController.cpp:102
Gamepad Interface.
Definition: GamepadBase.h:17