WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::NiDsStadiaController Class Reference

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

#include <wpi/driverstation/NiDsStadiaController.hpp>

Inheritance diagram for wpi::NiDsStadiaController:
wpi::GenericHID wpi::util::Sendable wpi::util::SendableHelper< NiDsStadiaController >

Classes

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

Public Member Functions

 NiDsStadiaController (int port)
 Construct an instance of a controller.
 ~NiDsStadiaController () override=default
 NiDsStadiaController (NiDsStadiaController &&)=default
NiDsStadiaControlleroperator= (NiDsStadiaController &&)=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.
void InitSendable (wpi::util::SendableBuilder &builder) override
 Initializes this Sendable object.
Public Member Functions inherited from wpi::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.
DriverStation::POVDirection GetPOV (int pov=0) const
 Get the angle of a POV on the HID.
BooleanEvent POV (DriverStation::POVDirection angle, EventLoop *loop) const
 Constructs a BooleanEvent instance based around this angle of a POV on the HID.
BooleanEvent POV (int pov, DriverStation::POVDirection 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 up direction of the default (index 0) POV on the HID.
BooleanEvent POVUpRight (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the up right direction of the default (index 0) POV on the HID.
BooleanEvent POVRight (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the right direction of the default (index 0) POV on the HID.
BooleanEvent POVDownRight (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the down right direction of the default (index 0) POV on the HID.
BooleanEvent POVDown (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the down direction of the default (index 0) POV on the HID.
BooleanEvent POVDownLeft (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the down left direction of the default (index 0) POV on the HID.
BooleanEvent POVLeft (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the left direction of the default (index 0) POV on the HID.
BooleanEvent POVUpLeft (EventLoop *loop) const
 Constructs a BooleanEvent instance based around the up left direction 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 GetAxesMaximumIndex () const
int GetAxesAvailable () const
 Get the number of axes for the HID.
int GetPOVsMaximumIndex () const
int GetPOVsAvailable () const
 Get the number of POVs for the HID.
int GetButtonsMaximumIndex () const
uint64_t GetButtonsAvailable () const
 Get the number of buttons for the HID.
bool IsConnected () const
 Get if the HID is connected.
GenericHID::HIDType GetGamepadType () const
 Get the type of the HID.
GenericHID::SupportedOutputs GetSupportedOutputs () const
 Get the supported outputs of the HID.
std::string GetName () const
 Get the name of the HID.
int GetPort () const
 Get the port number of the HID.
void SetLeds (int r, int g, int b)
 Set leds on the controller.
void SetRumble (RumbleType type, double value)
 Set the rumble output for the HID.
bool GetTouchpadFingerAvailable (int touchpad, int finger) const
 Check if a touchpad finger is available.
DriverStation::TouchpadFinger GetTouchpadFinger (int touchpad, int finger) const
 Get the touchpad finger data.
Public Member Functions inherited from wpi::util::Sendable
virtual constexpr ~Sendable ()=default
Public Member Functions inherited from wpi::util::SendableHelper< NiDsStadiaController >
constexpr SendableHelper (const SendableHelper &rhs)=default
constexpr SendableHelperoperator= (const SendableHelper &rhs)=default

Additional Inherited Members

Public Types inherited from wpi::GenericHID
enum  RumbleType { kLeftRumble , kRightRumble , kLeftTriggerRumble , kRightTriggerRumble }
 Represents a rumble output on the Joystick. More...
enum  SupportedOutputs {
  kNone = 0x0 , kMonoLed = 0x1 , kRgbLed = 0x2 , kPlayerLed = 0x4 ,
  kRumble = 0x8 , kTriggerRumble = 0x10
}
 Represents the various outputs that a HID may support. More...
enum  HIDType {
  kUnknown = 0 , kStandard , kXbox360 , kXboxOne ,
  kPS3 , kPS4 , kPS5 , kSwitchPro ,
  kSwitchJoyconLeft , kSwitchJoyconRight , kSwitchJoyconPair
}
 USB HID interface type. More...
Protected Member Functions inherited from wpi::util::SendableHelper< NiDsStadiaController >
constexpr ~SendableHelper ()

Detailed Description

Handle input from NiDsStadia controllers connected to the Driver Station.

This class handles NiDsStadia 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

◆ NiDsStadiaController() [1/2]

wpi::NiDsStadiaController::NiDsStadiaController ( 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).

◆ ~NiDsStadiaController()

wpi::NiDsStadiaController::~NiDsStadiaController ( )
overridedefault

◆ NiDsStadiaController() [2/2]

wpi::NiDsStadiaController::NiDsStadiaController ( NiDsStadiaController && )
default

Member Function Documentation

◆ A()

BooleanEvent wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::GetAButton ( ) const

Read the value of the A button on the controller.

Returns
The state of the button.

◆ GetAButtonPressed()

bool wpi::NiDsStadiaController::GetAButtonPressed ( )

Whether the A button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetAButtonReleased()

bool wpi::NiDsStadiaController::GetAButtonReleased ( )

Whether the A button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetBButton()

bool wpi::NiDsStadiaController::GetBButton ( ) const

Read the value of the B button on the controller.

Returns
The state of the button.

◆ GetBButtonPressed()

bool wpi::NiDsStadiaController::GetBButtonPressed ( )

Whether the B button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetBButtonReleased()

bool wpi::NiDsStadiaController::GetBButtonReleased ( )

Whether the B button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetEllipsesButton()

bool wpi::NiDsStadiaController::GetEllipsesButton ( ) const

Read the value of the ellipses button on the controller.

Returns
The state of the button.

◆ GetEllipsesButtonPressed()

bool wpi::NiDsStadiaController::GetEllipsesButtonPressed ( )

Whether the ellipses button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetEllipsesButtonReleased()

bool wpi::NiDsStadiaController::GetEllipsesButtonReleased ( )

Whether the ellipses button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetFrameButton()

bool wpi::NiDsStadiaController::GetFrameButton ( ) const

Read the value of the frame button on the controller.

Returns
The state of the button.

◆ GetFrameButtonPressed()

bool wpi::NiDsStadiaController::GetFrameButtonPressed ( )

Whether the frame button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetFrameButtonReleased()

bool wpi::NiDsStadiaController::GetFrameButtonReleased ( )

Whether the frame button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetGoogleButton()

bool wpi::NiDsStadiaController::GetGoogleButton ( ) const

Read the value of the google button on the controller.

Returns
The state of the button.

◆ GetGoogleButtonPressed()

bool wpi::NiDsStadiaController::GetGoogleButtonPressed ( )

Whether the google button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetGoogleButtonReleased()

bool wpi::NiDsStadiaController::GetGoogleButtonReleased ( )

Whether the google button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetHamburgerButton()

bool wpi::NiDsStadiaController::GetHamburgerButton ( ) const

Read the value of the hamburger button on the controller.

Returns
The state of the button.

◆ GetHamburgerButtonPressed()

bool wpi::NiDsStadiaController::GetHamburgerButtonPressed ( )

Whether the hamburger button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetHamburgerButtonReleased()

bool wpi::NiDsStadiaController::GetHamburgerButtonReleased ( )

Whether the hamburger button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetLeftBumperButton()

bool wpi::NiDsStadiaController::GetLeftBumperButton ( ) const

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

Returns
The state of the button.

◆ GetLeftBumperButtonPressed()

bool wpi::NiDsStadiaController::GetLeftBumperButtonPressed ( )

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

Returns
Whether the button was pressed since the last check.

◆ GetLeftBumperButtonReleased()

bool wpi::NiDsStadiaController::GetLeftBumperButtonReleased ( )

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

Returns
Whether the button was released since the last check.

◆ GetLeftStickButton()

bool wpi::NiDsStadiaController::GetLeftStickButton ( ) const

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

Returns
The state of the button.

◆ GetLeftStickButtonPressed()

bool wpi::NiDsStadiaController::GetLeftStickButtonPressed ( )

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

Returns
Whether the button was pressed since the last check.

◆ GetLeftStickButtonReleased()

bool wpi::NiDsStadiaController::GetLeftStickButtonReleased ( )

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

Returns
Whether the button was released since the last check.

◆ GetLeftTriggerButton()

bool wpi::NiDsStadiaController::GetLeftTriggerButton ( ) const

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

Returns
The state of the button.

◆ GetLeftTriggerButtonPressed()

bool wpi::NiDsStadiaController::GetLeftTriggerButtonPressed ( )

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

Returns
Whether the button was pressed since the last check.

◆ GetLeftTriggerButtonReleased()

bool wpi::NiDsStadiaController::GetLeftTriggerButtonReleased ( )

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

Returns
Whether the button was released since the last check.

◆ GetLeftX()

double wpi::NiDsStadiaController::GetLeftX ( ) const

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

Right is positive.

Returns
the axis value.

◆ GetLeftY()

double wpi::NiDsStadiaController::GetLeftY ( ) const

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

Back is positive.

Returns
the axis value.

◆ GetRightBumperButton()

bool wpi::NiDsStadiaController::GetRightBumperButton ( ) const

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

Returns
The state of the button.

◆ GetRightBumperButtonPressed()

bool wpi::NiDsStadiaController::GetRightBumperButtonPressed ( )

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

Returns
Whether the button was pressed since the last check.

◆ GetRightBumperButtonReleased()

bool wpi::NiDsStadiaController::GetRightBumperButtonReleased ( )

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

Returns
Whether the button was released since the last check.

◆ GetRightStickButton()

bool wpi::NiDsStadiaController::GetRightStickButton ( ) const

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

Returns
The state of the button.

◆ GetRightStickButtonPressed()

bool wpi::NiDsStadiaController::GetRightStickButtonPressed ( )

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

Returns
Whether the button was pressed since the last check.

◆ GetRightStickButtonReleased()

bool wpi::NiDsStadiaController::GetRightStickButtonReleased ( )

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

Returns
Whether the button was released since the last check.

◆ GetRightTriggerButton()

bool wpi::NiDsStadiaController::GetRightTriggerButton ( ) const

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

Returns
The state of the button.

◆ GetRightTriggerButtonPressed()

bool wpi::NiDsStadiaController::GetRightTriggerButtonPressed ( )

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

Returns
Whether the button was pressed since the last check.

◆ GetRightTriggerButtonReleased()

bool wpi::NiDsStadiaController::GetRightTriggerButtonReleased ( )

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

Returns
Whether the button was released since the last check.

◆ GetRightX()

double wpi::NiDsStadiaController::GetRightX ( ) const

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

Right is positive.

Returns
the axis value.

◆ GetRightY()

double wpi::NiDsStadiaController::GetRightY ( ) const

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

Back is positive.

Returns
the axis value.

◆ GetStadiaButton()

bool wpi::NiDsStadiaController::GetStadiaButton ( ) const

Read the value of the stadia button on the controller.

Returns
The state of the button.

◆ GetStadiaButtonPressed()

bool wpi::NiDsStadiaController::GetStadiaButtonPressed ( )

Whether the stadia button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetStadiaButtonReleased()

bool wpi::NiDsStadiaController::GetStadiaButtonReleased ( )

Whether the stadia button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetXButton()

bool wpi::NiDsStadiaController::GetXButton ( ) const

Read the value of the X button on the controller.

Returns
The state of the button.

◆ GetXButtonPressed()

bool wpi::NiDsStadiaController::GetXButtonPressed ( )

Whether the X button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetXButtonReleased()

bool wpi::NiDsStadiaController::GetXButtonReleased ( )

Whether the X button was released since the last check.

Returns
Whether the button was released since the last check.

◆ GetYButton()

bool wpi::NiDsStadiaController::GetYButton ( ) const

Read the value of the Y button on the controller.

Returns
The state of the button.

◆ GetYButtonPressed()

bool wpi::NiDsStadiaController::GetYButtonPressed ( )

Whether the Y button was pressed since the last check.

Returns
Whether the button was pressed since the last check.

◆ GetYButtonReleased()

bool wpi::NiDsStadiaController::GetYButtonReleased ( )

Whether the Y button was released since the last check.

Returns
Whether the button was released since the last check.

◆ Google()

BooleanEvent wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::InitSendable ( wpi::util::SendableBuilder & builder)
overridevirtual

Initializes this Sendable object.

Parameters
buildersendable builder

Implements wpi::util::Sendable.

◆ LeftBumper()

BooleanEvent wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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=()

NiDsStadiaController & wpi::NiDsStadiaController::operator= ( NiDsStadiaController && )
default

◆ RightBumper()

BooleanEvent wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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 wpi::NiDsStadiaController::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: