543 static constexpr int kA = 0;
545 static constexpr int kB = 1;
547 static constexpr int kX = 2;
549 static constexpr int kY = 3;
This class provides an easy way to link actions to active high logic signals.
Definition BooleanEvent.hpp:28
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
Definition EventLoop.hpp:15
bool GetHamburgerButtonPressed()
Whether the hamburger button was pressed since the last check.
BooleanEvent LeftStick(EventLoop *loop) const
Constructs an event instance around the left stick button's digital signal.
void InitSendable(wpi::util::SendableBuilder &builder) override
Initializes this Sendable object.
bool GetYButton() const
Read the value of the Y button on the controller.
bool GetLeftStickButtonPressed()
Whether the left stick button was pressed since the last check.
bool GetRightTriggerButtonReleased()
Whether the right trigger button was released since the last check.
bool GetLeftStickButton() const
Read the value of the left stick button on the controller.
bool GetLeftTriggerButtonReleased()
Whether the left trigger button was released since the last check.
bool GetRightStickButton() const
Read the value of the right stick button on the controller.
bool GetGoogleButtonReleased()
Whether the google button was released since the last check.
bool GetGoogleButtonPressed()
Whether the google button was pressed since the last check.
BooleanEvent LeftBumper(EventLoop *loop) const
Constructs an event instance around the left bumper button's digital signal.
bool GetEllipsesButtonPressed()
Whether the ellipses button was pressed since the last check.
bool GetStadiaButton() const
Read the value of the stadia button on the controller.
double GetLeftX() const
Get the X axis value of left side of the controller.
BooleanEvent LeftTrigger(EventLoop *loop) const
Constructs an event instance around the left trigger button's digital signal.
double GetRightY() const
Get the Y axis value of right side of the controller.
BooleanEvent RightBumper(EventLoop *loop) const
Constructs an event instance around the right bumper button's digital signal.
bool GetLeftBumperButtonPressed()
Whether the left bumper button was pressed since the last check.
bool GetFrameButton() const
Read the value of the frame button on the controller.
bool GetEllipsesButton() const
Read the value of the ellipses button on the controller.
NiDsStadiaController(int port)
Construct an instance of a controller.
NiDsStadiaController(NiDsStadiaController &&)=default
bool GetBButton() const
Read the value of the B button on the controller.
BooleanEvent Y(EventLoop *loop) const
Constructs an event instance around the Y button's digital signal.
bool GetStadiaButtonReleased()
Whether the stadia button was released since the last check.
BooleanEvent X(EventLoop *loop) const
Constructs an event instance around the X button's digital signal.
BooleanEvent RightStick(EventLoop *loop) const
Constructs an event instance around the right stick button's digital signal.
bool GetXButtonPressed()
Whether the X button was pressed since the last check.
BooleanEvent Google(EventLoop *loop) const
Constructs an event instance around the google button's digital signal.
BooleanEvent RightTrigger(EventLoop *loop) const
Constructs an event instance around the right trigger button's digital signal.
bool GetXButtonReleased()
Whether the X button was released since the last check.
bool GetLeftTriggerButton() const
Read the value of the left trigger button on the controller.
double GetRightX() const
Get the X axis value of right side of the controller.
bool GetLeftStickButtonReleased()
Whether the left stick button was released since the last check.
BooleanEvent Stadia(EventLoop *loop) const
Constructs an event instance around the stadia button's digital signal.
bool GetStadiaButtonPressed()
Whether the stadia button was pressed since the last check.
bool GetFrameButtonPressed()
Whether the frame button was pressed since the last check.
bool GetRightBumperButton() const
Read the value of the right bumper button on the controller.
bool GetRightBumperButtonReleased()
Whether the right bumper button was released since the last check.
bool GetBButtonReleased()
Whether the B button was released since the last check.
bool GetAButton() const
Read the value of the A button on the controller.
bool GetLeftTriggerButtonPressed()
Whether the left trigger button was pressed since the last check.
bool GetHamburgerButton() const
Read the value of the hamburger button on the controller.
bool GetHamburgerButtonReleased()
Whether the hamburger button was released since the last check.
bool GetGoogleButton() const
Read the value of the google button on the controller.
bool GetAButtonPressed()
Whether the A button was pressed since the last check.
~NiDsStadiaController() override=default
BooleanEvent Frame(EventLoop *loop) const
Constructs an event instance around the frame button's digital signal.
bool GetBButtonPressed()
Whether the B button was pressed since the last check.
double GetLeftY() const
Get the Y axis value of left side of the controller.
bool GetRightTriggerButton() const
Read the value of the right trigger button on the controller.
bool GetRightStickButtonPressed()
Whether the right stick button was pressed since the last check.
NiDsStadiaController & operator=(NiDsStadiaController &&)=default
bool GetRightBumperButtonPressed()
Whether the right bumper button was pressed since the last check.
bool GetEllipsesButtonReleased()
Whether the ellipses button was released since the last check.
BooleanEvent A(EventLoop *loop) const
Constructs an event instance around the A button's digital signal.
bool GetAButtonReleased()
Whether the A button was released since the last check.
bool GetXButton() const
Read the value of the X button on the controller.
bool GetYButtonPressed()
Whether the Y button was pressed since the last check.
bool GetRightStickButtonReleased()
Whether the right stick button was released since the last check.
bool GetLeftBumperButton() const
Read the value of the left bumper button on the controller.
BooleanEvent Ellipses(EventLoop *loop) const
Constructs an event instance around the ellipses button's digital signal.
bool GetFrameButtonReleased()
Whether the frame button was released since the last check.
bool GetRightTriggerButtonPressed()
Whether the right trigger button was pressed since the last check.
BooleanEvent Hamburger(EventLoop *loop) const
Constructs an event instance around the hamburger button's digital signal.
BooleanEvent B(EventLoop *loop) const
Constructs an event instance around the B button's digital signal.
bool GetYButtonReleased()
Whether the Y button was released since the last check.
bool GetLeftBumperButtonReleased()
Whether the left bumper button was released since the last check.
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.hpp:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition SendableHelper.hpp:21
Interface for Sendable objects.
Definition Sendable.hpp:16
Definition CvSource.hpp:15
Represents an axis on an NiDsStadiaController.
Definition NiDsStadiaController.hpp:575
static constexpr int kLeftY
Left Y axis.
Definition NiDsStadiaController.hpp:581
static constexpr int kRightX
Right X axis.
Definition NiDsStadiaController.hpp:579
static constexpr int kRightY
Right Y axis.
Definition NiDsStadiaController.hpp:583
static constexpr int kLeftX
Left X axis.
Definition NiDsStadiaController.hpp:577