522 static constexpr int kA = 1;
524 static constexpr int kB = 2;
526 static constexpr int kX = 3;
528 static constexpr int kY = 4;
This class provides an easy way to link actions to inputs.
Definition: BooleanEvent.h:31
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
Definition: EventLoop.h:15
Handle input from standard HID devices connected to the Driver Station.
Definition: GenericHID.h:24
Handle input from Stadia controllers connected to the Driver Station.
Definition: StadiaController.h:20
bool GetStadiaButtonPressed()
Whether the stadia button was pressed since the last check.
BooleanEvent RightStick(EventLoop *loop) const
Constructs an event instance around the right stick's digital signal.
BooleanEvent LeftTrigger(EventLoop *loop) const
Constructs an event instance around the left trigger button's digital signal.
BooleanEvent X(EventLoop *loop) const
Constructs an event instance around the X button's digital signal.
bool GetXButtonPressed()
Whether the X button was pressed since the last check.
bool GetYButton() const
Read the value of the Y button on the controller.
bool GetStadiaButtonReleased()
Whether the stadia button was released since the last check.
bool GetRightBumperReleased()
Whether the right bumper (RB) was released since the last check.
bool GetEllipsesButtonPressed()
Whether the ellipses button was pressed since the last check.
bool GetGoogleButtonReleased()
Whether the google button was released since the last check.
bool GetLeftBumperPressed()
Whether the left bumper (LB) was pressed since the last check.
bool GetLeftTriggerButtonReleased()
Whether the left trigger button was released since the last check.
bool GetBButtonReleased()
Whether the B button was released since the last check.
bool GetHamburgerButton() const
Read the value of the hamburger button on the controller.
bool GetLeftTriggerButtonPressed()
Whether the left trigger button was pressed since the last check.
double GetLeftX() const
Get the X axis value of left side of the controller.
bool GetBButtonPressed()
Whether the B button was pressed since the last check.
bool GetYButtonPressed()
Whether the Y button was pressed since the last check.
bool GetLeftStickButtonPressed()
Whether the left stick button (LSB) was pressed since the last check.
bool GetEllipsesButtonReleased()
Whether the ellipses button was released since the last check.
BooleanEvent LeftBumper(EventLoop *loop) const
Constructs an event instance around the left bumper's digital signal.
bool GetStadiaButton() const
Read the value of the stadia button on the controller.
bool GetGoogleButtonPressed()
Whether the google button was pressed since the last check.
BooleanEvent Y(EventLoop *loop) const
Constructs an event instance around the Y button's digital signal.
bool GetHamburgerButtonReleased()
Whether the hamburger button was released since the last check.
bool GetAButton() const
Read the value of the A button on the controller.
bool GetRightTriggerButton() const
Read the value of the right trigger button on the controller.
bool GetHamburgerButtonPressed()
Whether the hamburger button was pressed since the last check.
bool GetLeftStickButtonReleased()
Whether the left stick button (LSB) was released since the last check.
bool GetGoogleButton() const
Read the value of the google button on the controller.
BooleanEvent Ellipses(EventLoop *loop) const
Constructs an event instance around the ellipses button's digital signal.
BooleanEvent B(EventLoop *loop) const
Constructs an event instance around the B button's digital signal.
BooleanEvent Hamburger(EventLoop *loop) const
Constructs an event instance around the hamburger button's digital signal.
bool GetRightStickButtonReleased()
Whether the right stick button (RSB) was released since the last check.
BooleanEvent Frame(EventLoop *loop) const
Constructs an event instance around the frame button's digital signal.
bool GetLeftTriggerButton() const
Read the value of the left trigger button on the controller.
bool GetXButtonReleased()
Whether the X button was released since the last check.
double GetLeftY() const
Get the Y axis value of left side of the controller.
bool GetAButtonReleased()
Whether the A button was released since the last check.
bool GetRightBumperPressed()
Whether the right bumper (RB) was pressed since the last check.
BooleanEvent Stadia(EventLoop *loop) const
Constructs an event instance around the stadia button's digital signal.
double GetRightY() const
Get the Y axis value of right side of the controller.
BooleanEvent A(EventLoop *loop) const
Constructs an event instance around the A button's digital signal.
bool GetRightBumper() const
Read the value of the right bumper (RB) button on the controller.
double GetRightX() const
Get the X axis value of right side of the controller.
bool GetFrameButtonPressed()
Whether the frame button was pressed since the last check.
bool GetRightStickButtonPressed()
Whether the right stick button (RSB) was pressed since the last check.
bool GetRightTriggerButtonPressed()
Whether the right trigger button was pressed since the last check.
BooleanEvent Google(EventLoop *loop) const
Constructs an event instance around the google button's digital signal.
bool GetLeftStickButton() const
Read the value of the left stick button (LSB) on the controller.
bool GetAButtonPressed()
Whether the A button was pressed since the last check.
bool GetBButton() const
Read the value of the B button on the controller.
BooleanEvent RightTrigger(EventLoop *loop) const
Constructs an event instance around the right trigger button's digital signal.
bool GetRightStickButton() const
Read the value of the right stick button (RSB) on the controller.
bool GetYButtonReleased()
Whether the Y button was released since the last check.
StadiaController(int port)
Construct an instance of a Stadia controller.
bool GetRightTriggerButtonReleased()
Whether the right trigger button was released since the last check.
bool GetFrameButtonReleased()
Whether the frame button was released since the last check.
BooleanEvent LeftStick(EventLoop *loop) const
Constructs an event instance around the left stick's digital signal.
StadiaController & operator=(StadiaController &&)=default
bool GetLeftBumperReleased()
Whether the left bumper (LB) was released since the last check.
bool GetXButton() const
Read the value of the X button on the controller.
StadiaController(StadiaController &&)=default
bool GetEllipsesButton() const
Read the value of the ellipses button on the controller.
~StadiaController() override=default
bool GetLeftBumper() const
Read the value of the left bumper (LB) button on the controller.
BooleanEvent RightBumper(EventLoop *loop) const
Constructs an event instance around the right bumper's digital signal.
bool GetFrameButton() const
Read the value of the frame button on the controller.
Definition: AprilTagPoseEstimator.h:15
Represents an axis on a StadiaController.
Definition: StadiaController.h:556
static constexpr int kLeftY
Left Y axis.
Definition: StadiaController.h:562
static constexpr int kLeftX
Left X axis.
Definition: StadiaController.h:558
static constexpr int kRightY
Right Y axis.
Definition: StadiaController.h:564
static constexpr int kRightX
Right X axis.
Definition: StadiaController.h:560