548 [[deprecated(
"Use GetLeftBumperButton instead")]]
559 [[deprecated(
"Use GetRightBumperButton instead")]]
570 [[deprecated(
"Use GetLeftBumperButtonPressed instead")]]
581 [[deprecated(
"Use GetRightBumperButtonPressed instead")]]
592 [[deprecated(
"Use GetLeftBumperButtonReleased instead")]]
603 [[deprecated(
"Use GetRightBumperButtonReleased instead")]]
609 static constexpr int kA = 1;
611 static constexpr int kB = 2;
613 static constexpr int kX = 3;
615 static constexpr int kY = 4;
This class provides an easy way to link actions to active high logic signals.
Definition BooleanEvent.h:30
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:30
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 button'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 GetLeftBumperButton() const
Read the value of the left bumper button on the controller.
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 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 button's digital signal.
bool GetStadiaButton() const
Read the value of the stadia button on the controller.
bool GetRightBumperButtonReleased()
Whether the right bumper button was released since the last check.
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 GetRightBumperButtonPressed()
Whether the right bumper button was pressed 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 GetRightBumperButton() const
Read the value of the right bumper button on the controller.
bool GetLeftStickButtonReleased()
Whether the left stick button 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 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 GetLeftBumperButtonReleased()
Whether the left bumper button was released since the last check.
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.
bool GetLeftBumperButtonPressed()
Whether the left bumper button was pressed since the last check.
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 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 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.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
bool GetRightStickButton() const
Read the value of the right stick button on the controller.
bool GetYButtonReleased()
Whether the Y button was released since the last check.
StadiaController(int port)
Construct an instance of a 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 button'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 button's digital signal.
bool GetFrameButton() const
Read the value of the frame button on the controller.
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.h:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition SendableHelper.h:21
Interface for Sendable objects.
Definition Sendable.h:16
Represents an axis on an StadiaController.
Definition StadiaController.h:641
static constexpr int kLeftY
Left Y axis.
Definition StadiaController.h:647
static constexpr int kLeftX
Left X axis.
Definition StadiaController.h:643
static constexpr int kRightY
Right Y axis.
Definition StadiaController.h:649
static constexpr int kRightX
Right X axis.
Definition StadiaController.h:645