WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
frc::StadiaController Class Reference

Handle input from Stadia controllers connected to the Driver Station. More...

#include <frc/StadiaController.h>

Inheritance diagram for frc::StadiaController:
frc::GenericHID wpi::Sendable wpi::SendableHelper< StadiaController >

Classes

struct  Axis
 Represents an axis on an StadiaController. More...
 
struct  Button
 Represents a digital button on an StadiaController. More...
 

Public Member Functions

 StadiaController (int port)
 Construct an instance of a controller.
 
 ~StadiaController () override=default
 
 StadiaController (StadiaController &&)=default
 
StadiaControlleroperator= (StadiaController &&)=default
 
double GetLeftX () const
 Get the X axis value of left side of the controller.
 
double GetRightX () const
 Get the X axis value of right side of the controller.
 
double GetLeftY () const
 Get the Y axis value of left side of the controller.
 
double GetRightY () const
 Get the Y axis value of right side of the controller.
 
bool GetAButton () const
 Read the value of the A button on the controller.
 
bool GetAButtonPressed ()
 Whether the A button was pressed since the last check.
 
bool GetAButtonReleased ()
 Whether the A button was released since the last check.
 
BooleanEvent A (EventLoop *loop) const
 Constructs an event instance around the A button's digital signal.
 
bool GetBButton () const
 Read the value of the B button on the controller.
 
bool GetBButtonPressed ()
 Whether the B button was pressed since the last check.
 
bool GetBButtonReleased ()
 Whether the B button was released since the last check.
 
BooleanEvent B (EventLoop *loop) const
 Constructs an event instance around the B button's digital signal.
 
bool GetXButton () const
 Read the value of the X button on the controller.
 
bool GetXButtonPressed ()
 Whether the X button was pressed since the last check.
 
bool GetXButtonReleased ()
 Whether the X button was released since the last check.
 
BooleanEvent X (EventLoop *loop) const
 Constructs an event instance around the X button's digital signal.
 
bool GetYButton () const
 Read the value of the Y button on the controller.
 
bool GetYButtonPressed ()
 Whether the Y button was pressed since the last check.
 
bool GetYButtonReleased ()
 Whether the Y button was released since the last check.
 
BooleanEvent Y (EventLoop *loop) const
 Constructs an event instance around the Y button's digital signal.
 
bool GetLeftBumperButton () const
 Read the value of the left bumper button on the controller.
 
bool GetLeftBumperButtonPressed ()
 Whether the left bumper button was pressed since the last check.
 
bool GetLeftBumperButtonReleased ()
 Whether the left bumper 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 GetRightBumperButton () const
 Read the value of the right bumper button on the controller.
 
bool GetRightBumperButtonPressed ()
 Whether the right bumper button was pressed since the last check.
 
bool GetRightBumperButtonReleased ()
 Whether the right bumper button was released since the last check.
 
BooleanEvent RightBumper (EventLoop *loop) const
 Constructs an event instance around the right bumper button's digital signal.
 
bool GetLeftStickButton () const
 Read the value of the left stick button on the controller.
 
bool GetLeftStickButtonPressed ()
 Whether the left stick button was pressed since the last check.
 
bool GetLeftStickButtonReleased ()
 Whether the left stick button was released since the last check.
 
BooleanEvent LeftStick (EventLoop *loop) const
 Constructs an event instance around the left stick button's digital signal.
 
bool GetRightStickButton () const
 Read the value of the right stick button on the controller.
 
bool GetRightStickButtonPressed ()
 Whether the right stick button was pressed since the last check.
 
bool GetRightStickButtonReleased ()
 Whether the right stick button was released since the last check.
 
BooleanEvent RightStick (EventLoop *loop) const
 Constructs an event instance around the right stick button's digital signal.
 
bool GetEllipsesButton () const
 Read the value of the ellipses button on the controller.
 
bool GetEllipsesButtonPressed ()
 Whether the ellipses button was pressed since the last check.
 
bool GetEllipsesButtonReleased ()
 Whether the ellipses button was released since the last check.
 
BooleanEvent Ellipses (EventLoop *loop) const
 Constructs an event instance around the ellipses button's digital signal.
 
bool GetHamburgerButton () const
 Read the value of the hamburger button on the controller.
 
bool GetHamburgerButtonPressed ()
 Whether the hamburger button was pressed since the last check.
 
bool GetHamburgerButtonReleased ()
 Whether the hamburger button was released since the last check.
 
BooleanEvent Hamburger (EventLoop *loop) const
 Constructs an event instance around the hamburger button's digital signal.
 
bool GetStadiaButton () const
 Read the value of the stadia button on the controller.
 
bool GetStadiaButtonPressed ()
 Whether the stadia button was pressed since the last check.
 
bool GetStadiaButtonReleased ()
 Whether the stadia button was released since the last check.
 
BooleanEvent Stadia (EventLoop *loop) const
 Constructs an event instance around the stadia button's digital signal.
 
bool GetRightTriggerButton () const
 Read the value of the right trigger button on the controller.
 
bool GetRightTriggerButtonPressed ()
 Whether the right trigger button was pressed since the last check.
 
bool GetRightTriggerButtonReleased ()
 Whether the right trigger button was released since the last check.
 
BooleanEvent RightTrigger (EventLoop *loop) const
 Constructs an event instance around the right trigger button's digital signal.
 
bool GetLeftTriggerButton () const
 Read the value of the left trigger button on the controller.
 
bool GetLeftTriggerButtonPressed ()
 Whether the left trigger button was pressed since the last check.
 
bool GetLeftTriggerButtonReleased ()
 Whether the left trigger button was released since the last check.
 
BooleanEvent LeftTrigger (EventLoop *loop) const
 Constructs an event instance around the left trigger button's digital signal.
 
bool GetGoogleButton () const
 Read the value of the google button on the controller.
 
bool GetGoogleButtonPressed ()
 Whether the google button was pressed since the last check.
 
bool GetGoogleButtonReleased ()
 Whether the google button was released since the last check.
 
BooleanEvent Google (EventLoop *loop) const
 Constructs an event instance around the google button's digital signal.
 
bool GetFrameButton () const
 Read the value of the frame button on the controller.
 
bool GetFrameButtonPressed ()
 Whether the frame button was pressed since the last check.
 
bool GetFrameButtonReleased ()
 Whether the frame button was released since the last check.
 
BooleanEvent Frame (EventLoop *loop) const
 Constructs an event instance around the frame button's digital signal.
 
bool GetLeftBumper () const
 Read the value of the left bumper (LB) button on the controller.
 
bool GetRightBumper () const
 Read the value of the right bumper (RB) button on the controller.
 
bool GetLeftBumperPressed ()
 Whether the left bumper (LB) was pressed since the last check.
 
bool GetRightBumperPressed ()
 Whether the right bumper (RB) was pressed since the last check.
 
bool GetLeftBumperReleased ()
 Whether the left bumper (LB) was released since the last check.
 
bool GetRightBumperReleased ()
 Whether the right bumper (RB) was released since the last check.
 
void InitSendable (wpi::SendableBuilder &builder) override
 Initializes this Sendable object.
 
- Public Member Functions inherited from frc::GenericHID
 GenericHID (int port)
 
virtual ~GenericHID ()=default
 
 GenericHID (GenericHID &&)=default
 
GenericHIDoperator= (GenericHID &&)=default
 
bool GetRawButton (int button) const
 Get the button value (starting at button 1).
 
bool GetRawButtonPressed (int button)
 Whether the button was pressed since the last check.
 
bool GetRawButtonReleased (int button)
 Whether the button was released since the last check.
 
BooleanEvent Button (int button, EventLoop *loop) const
 Constructs an event instance around this button's digital signal.
 
double GetRawAxis (int axis) const
 Get the value of the axis.
 
int GetPOV (int pov=0) const
 Get the angle in degrees of a POV on the HID.
 
BooleanEvent POV (int angle, EventLoop *loop) const
 Constructs a BooleanEvent instance based around this angle of a POV on the HID.
 
BooleanEvent POV (int pov, int angle, EventLoop *loop) const
 Constructs a BooleanEvent instance based around this angle of a POV on the HID.
 
BooleanEvent POVUp (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the 0 degree angle (up) of the default (index 0) POV on the HID.
 
BooleanEvent POVUpRight (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the 45 degree angle (right up) of the default (index 0) POV on the HID.
 
BooleanEvent POVRight (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the 90 degree angle (right) of the default (index 0) POV on the HID.
 
BooleanEvent POVDownRight (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the 135 degree angle (right down) of the default (index 0) POV on the HID.
 
BooleanEvent POVDown (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the 180 degree angle (down) of the default (index 0) POV on the HID.
 
BooleanEvent POVDownLeft (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the 225 degree angle (down left) of the default (index 0) POV on the HID.
 
BooleanEvent POVLeft (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the 270 degree angle (left) of the default (index 0) POV on the HID.
 
BooleanEvent POVUpLeft (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the 315 degree angle (left up) of the default (index 0) POV on the HID.
 
BooleanEvent POVCenter (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the center (not pressed) of the default (index 0) POV on the HID.
 
BooleanEvent AxisLessThan (int axis, double threshold, EventLoop *loop) const
 Constructs an event instance that is true when the axis value is less than threshold.
 
BooleanEvent AxisGreaterThan (int axis, double threshold, EventLoop *loop) const
 Constructs an event instance that is true when the axis value is greater than threshold.
 
int GetAxisCount () const
 Get the number of axes for the HID.
 
int GetPOVCount () const
 Get the number of POVs for the HID.
 
int GetButtonCount () const
 Get the number of buttons for the HID.
 
bool IsConnected () const
 Get if the HID is connected.
 
GenericHID::HIDType GetType () const
 Get the type of the HID.
 
std::string GetName () const
 Get the name of the HID.
 
int GetAxisType (int axis) const
 Get the axis type of a joystick axis.
 
int GetPort () const
 Get the port number of the HID.
 
void SetOutput (int outputNumber, bool value)
 Set a single HID output value for the HID.
 
void SetOutputs (int value)
 Set all output values for the HID.
 
void SetRumble (RumbleType type, double value)
 Set the rumble output for the HID.
 
- Public Member Functions inherited from wpi::Sendable
virtual constexpr ~Sendable ()=default
 
- Public Member Functions inherited from wpi::SendableHelper< StadiaController >
constexpr SendableHelper (const SendableHelper &rhs)=default
 
constexpr SendableHelper (SendableHelper &&rhs)
 
constexpr SendableHelperoperator= (const SendableHelper &rhs)=default
 
constexpr SendableHelperoperator= (SendableHelper &&rhs)
 

Additional Inherited Members

- Public Types inherited from frc::GenericHID
enum  RumbleType { kLeftRumble , kRightRumble , kBothRumble }
 Represents a rumble output on the Joystick. More...
 
enum  HIDType {
  kUnknown = -1 , kXInputUnknown = 0 , kXInputGamepad = 1 , kXInputWheel = 2 ,
  kXInputArcadeStick = 3 , kXInputFlightStick = 4 , kXInputDancePad = 5 , kXInputGuitar = 6 ,
  kXInputGuitar2 = 7 , kXInputDrumKit = 8 , kXInputGuitar3 = 11 , kXInputArcadePad = 19 ,
  kHIDJoystick = 20 , kHIDGamepad = 21 , kHIDDriving = 22 , kHIDFlight = 23 ,
  kHID1stPerson = 24
}
 USB HID interface type. More...
 
- Protected Member Functions inherited from wpi::SendableHelper< StadiaController >
constexpr SendableHelper ()=default
 
constexpr ~SendableHelper ()
 

Detailed Description

Handle input from Stadia controllers connected to the Driver Station.

This class handles Stadia input that comes from the Driver Station. Each time a value is requested the most recent value is returned. There is a single class instance for each controller and the mapping of ports to hardware buttons depends on the code in the Driver Station.

Only first party controllers from Google are guaranteed to have the correct mapping, and only through the official NI DS. Sim is not guaranteed to have the same mapping, as well as any 3rd party controllers.

Constructor & Destructor Documentation

◆ StadiaController() [1/2]

frc::StadiaController::StadiaController ( int port)
explicit

Construct an instance of a controller.

The controller index is the USB port on the Driver Station.

Parameters
portThe port on the Driver Station that the controller is plugged into (0-5).

◆ ~StadiaController()

frc::StadiaController::~StadiaController ( )
overridedefault

◆ StadiaController() [2/2]

frc::StadiaController::StadiaController ( StadiaController && )
default

Member Function Documentation

◆ A()

BooleanEvent frc::StadiaController::A ( EventLoop * loop) const

Constructs an event instance around the A button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the A button's digital signal attached to the given loop.

◆ B()

BooleanEvent frc::StadiaController::B ( EventLoop * loop) const

Constructs an event instance around the B button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the B button's digital signal attached to the given loop.

◆ Ellipses()

BooleanEvent frc::StadiaController::Ellipses ( EventLoop * loop) const

Constructs an event instance around the ellipses button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the ellipses button's digital signal attached to the given loop.

◆ Frame()

BooleanEvent frc::StadiaController::Frame ( EventLoop * loop) const

Constructs an event instance around the frame button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the frame button's digital signal attached to the given loop.

◆ GetAButton()

bool frc::StadiaController::GetAButton ( ) const

Read the value of the A button on the controller.

Returns
The state of the button.

◆ GetAButtonPressed()

bool frc::StadiaController::GetAButtonPressed ( )

Whether the A button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetAButtonReleased()

bool frc::StadiaController::GetAButtonReleased ( )

Whether the A button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetBButton()

bool frc::StadiaController::GetBButton ( ) const

Read the value of the B button on the controller.

Returns
The state of the button.

◆ GetBButtonPressed()

bool frc::StadiaController::GetBButtonPressed ( )

Whether the B button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetBButtonReleased()

bool frc::StadiaController::GetBButtonReleased ( )

Whether the B button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetEllipsesButton()

bool frc::StadiaController::GetEllipsesButton ( ) const

Read the value of the ellipses button on the controller.

Returns
The state of the button.

◆ GetEllipsesButtonPressed()

bool frc::StadiaController::GetEllipsesButtonPressed ( )

Whether the ellipses button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetEllipsesButtonReleased()

bool frc::StadiaController::GetEllipsesButtonReleased ( )

Whether the ellipses button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetFrameButton()

bool frc::StadiaController::GetFrameButton ( ) const

Read the value of the frame button on the controller.

Returns
The state of the button.

◆ GetFrameButtonPressed()

bool frc::StadiaController::GetFrameButtonPressed ( )

Whether the frame button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetFrameButtonReleased()

bool frc::StadiaController::GetFrameButtonReleased ( )

Whether the frame button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetGoogleButton()

bool frc::StadiaController::GetGoogleButton ( ) const

Read the value of the google button on the controller.

Returns
The state of the button.

◆ GetGoogleButtonPressed()

bool frc::StadiaController::GetGoogleButtonPressed ( )

Whether the google button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetGoogleButtonReleased()

bool frc::StadiaController::GetGoogleButtonReleased ( )

Whether the google button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetHamburgerButton()

bool frc::StadiaController::GetHamburgerButton ( ) const

Read the value of the hamburger button on the controller.

Returns
The state of the button.

◆ GetHamburgerButtonPressed()

bool frc::StadiaController::GetHamburgerButtonPressed ( )

Whether the hamburger button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetHamburgerButtonReleased()

bool frc::StadiaController::GetHamburgerButtonReleased ( )

Whether the hamburger button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetLeftBumper()

bool frc::StadiaController::GetLeftBumper ( ) const

Read the value of the left bumper (LB) button on the controller.

Returns
the state of the button
Deprecated
Use GetLeftBumperButton instead. This function is deprecated for removal to make function names consistent to allow the HID classes to be automatically generated.

◆ GetLeftBumperButton()

bool frc::StadiaController::GetLeftBumperButton ( ) const

Read the value of the left bumper button on the controller.

Returns
The state of the button.

◆ GetLeftBumperButtonPressed()

bool frc::StadiaController::GetLeftBumperButtonPressed ( )

Whether the left bumper button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetLeftBumperButtonReleased()

bool frc::StadiaController::GetLeftBumperButtonReleased ( )

Whether the left bumper button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetLeftBumperPressed()

bool frc::StadiaController::GetLeftBumperPressed ( )

Whether the left bumper (LB) was pressed since the last check.

Returns
Whether the button was pressed since the last check
Deprecated
Use GetLeftBumperButtonPressed instead. This function is deprecated for removal to make function names consistent to allow the HID classes to be automatically generated.

◆ GetLeftBumperReleased()

bool frc::StadiaController::GetLeftBumperReleased ( )

Whether the left bumper (LB) was released since the last check.

Returns
Whether the button was released since the last check.
Deprecated
Use GetLeftBumperButtonReleased instead. This function is deprecated for removal to make function names consistent to allow the HID classes to be automatically generated.

◆ GetLeftStickButton()

bool frc::StadiaController::GetLeftStickButton ( ) const

Read the value of the left stick button on the controller.

Returns
The state of the button.

◆ GetLeftStickButtonPressed()

bool frc::StadiaController::GetLeftStickButtonPressed ( )

Whether the left stick button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetLeftStickButtonReleased()

bool frc::StadiaController::GetLeftStickButtonReleased ( )

Whether the left stick button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetLeftTriggerButton()

bool frc::StadiaController::GetLeftTriggerButton ( ) const

Read the value of the left trigger button on the controller.

Returns
The state of the button.

◆ GetLeftTriggerButtonPressed()

bool frc::StadiaController::GetLeftTriggerButtonPressed ( )

Whether the left trigger button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetLeftTriggerButtonReleased()

bool frc::StadiaController::GetLeftTriggerButtonReleased ( )

Whether the left trigger button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetLeftX()

double frc::StadiaController::GetLeftX ( ) const

Get the X axis value of left side of the controller.

Returns
the axis value.

◆ GetLeftY()

double frc::StadiaController::GetLeftY ( ) const

Get the Y axis value of left side of the controller.

Returns
the axis value.

◆ GetRightBumper()

bool frc::StadiaController::GetRightBumper ( ) const

Read the value of the right bumper (RB) button on the controller.

Returns
the state of the button
Deprecated
Use GetRightBumperButton instead. This function is deprecated for removal to make function names consistent to allow the HID classes to be automatically generated.

◆ GetRightBumperButton()

bool frc::StadiaController::GetRightBumperButton ( ) const

Read the value of the right bumper button on the controller.

Returns
The state of the button.

◆ GetRightBumperButtonPressed()

bool frc::StadiaController::GetRightBumperButtonPressed ( )

Whether the right bumper button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetRightBumperButtonReleased()

bool frc::StadiaController::GetRightBumperButtonReleased ( )

Whether the right bumper button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetRightBumperPressed()

bool frc::StadiaController::GetRightBumperPressed ( )

Whether the right bumper (RB) was pressed since the last check.

Returns
Whether the button was pressed since the last check
Deprecated
Use GetRightBumperButtonPressed instead. This function is deprecated for removal to make function names consistent to allow the HID classes to be automatically generated.

◆ GetRightBumperReleased()

bool frc::StadiaController::GetRightBumperReleased ( )

Whether the right bumper (RB) was released since the last check.

Returns
Whether the button was released since the last check.
Deprecated
Use GetRightBumperButtonReleased instead. This function is deprecated for removal to make function names consistent to allow the HID classes to be automatically generated.

◆ GetRightStickButton()

bool frc::StadiaController::GetRightStickButton ( ) const

Read the value of the right stick button on the controller.

Returns
The state of the button.

◆ GetRightStickButtonPressed()

bool frc::StadiaController::GetRightStickButtonPressed ( )

Whether the right stick button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetRightStickButtonReleased()

bool frc::StadiaController::GetRightStickButtonReleased ( )

Whether the right stick button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetRightTriggerButton()

bool frc::StadiaController::GetRightTriggerButton ( ) const

Read the value of the right trigger button on the controller.

Returns
The state of the button.

◆ GetRightTriggerButtonPressed()

bool frc::StadiaController::GetRightTriggerButtonPressed ( )

Whether the right trigger button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetRightTriggerButtonReleased()

bool frc::StadiaController::GetRightTriggerButtonReleased ( )

Whether the right trigger button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetRightX()

double frc::StadiaController::GetRightX ( ) const

Get the X axis value of right side of the controller.

Returns
the axis value.

◆ GetRightY()

double frc::StadiaController::GetRightY ( ) const

Get the Y axis value of right side of the controller.

Returns
the axis value.

◆ GetStadiaButton()

bool frc::StadiaController::GetStadiaButton ( ) const

Read the value of the stadia button on the controller.

Returns
The state of the button.

◆ GetStadiaButtonPressed()

bool frc::StadiaController::GetStadiaButtonPressed ( )

Whether the stadia button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetStadiaButtonReleased()

bool frc::StadiaController::GetStadiaButtonReleased ( )

Whether the stadia button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetXButton()

bool frc::StadiaController::GetXButton ( ) const

Read the value of the X button on the controller.

Returns
The state of the button.

◆ GetXButtonPressed()

bool frc::StadiaController::GetXButtonPressed ( )

Whether the X button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetXButtonReleased()

bool frc::StadiaController::GetXButtonReleased ( )

Whether the X button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetYButton()

bool frc::StadiaController::GetYButton ( ) const

Read the value of the Y button on the controller.

Returns
The state of the button.

◆ GetYButtonPressed()

bool frc::StadiaController::GetYButtonPressed ( )

Whether the Y button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetYButtonReleased()

bool frc::StadiaController::GetYButtonReleased ( )

Whether the Y button was released since the last check.

Returns
Whether the button was released since the last check.

◆ Google()

BooleanEvent frc::StadiaController::Google ( EventLoop * loop) const

Constructs an event instance around the google button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the google button's digital signal attached to the given loop.

◆ Hamburger()

BooleanEvent frc::StadiaController::Hamburger ( EventLoop * loop) const

Constructs an event instance around the hamburger button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the hamburger button's digital signal attached to the given loop.

◆ InitSendable()

void frc::StadiaController::InitSendable ( wpi::SendableBuilder & builder)
overridevirtual

Initializes this Sendable object.

Parameters
buildersendable builder

Implements wpi::Sendable.

◆ LeftBumper()

BooleanEvent frc::StadiaController::LeftBumper ( EventLoop * loop) const

Constructs an event instance around the left bumper button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the left bumper button's digital signal attached to the given loop.

◆ LeftStick()

BooleanEvent frc::StadiaController::LeftStick ( EventLoop * loop) const

Constructs an event instance around the left stick button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the left stick button's digital signal attached to the given loop.

◆ LeftTrigger()

BooleanEvent frc::StadiaController::LeftTrigger ( EventLoop * loop) const

Constructs an event instance around the left trigger button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the left trigger button's digital signal attached to the given loop.

◆ operator=()

StadiaController & frc::StadiaController::operator= ( StadiaController && )
default

◆ RightBumper()

BooleanEvent frc::StadiaController::RightBumper ( EventLoop * loop) const

Constructs an event instance around the right bumper button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the right bumper button's digital signal attached to the given loop.

◆ RightStick()

BooleanEvent frc::StadiaController::RightStick ( EventLoop * loop) const

Constructs an event instance around the right stick button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the right stick button's digital signal attached to the given loop.

◆ RightTrigger()

BooleanEvent frc::StadiaController::RightTrigger ( EventLoop * loop) const

Constructs an event instance around the right trigger button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the right trigger button's digital signal attached to the given loop.

◆ Stadia()

BooleanEvent frc::StadiaController::Stadia ( EventLoop * loop) const

Constructs an event instance around the stadia button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the stadia button's digital signal attached to the given loop.

◆ X()

BooleanEvent frc::StadiaController::X ( EventLoop * loop) const

Constructs an event instance around the X button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the X button's digital signal attached to the given loop.

◆ Y()

BooleanEvent frc::StadiaController::Y ( EventLoop * loop) const

Constructs an event instance around the Y button's digital signal.

Parameters
loopthe event loop instance to attach the event to.
Returns
an event instance representing the Y button's digital signal attached to the given loop.

The documentation for this class was generated from the following file: