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

Class to control a simulated NiDsStadia controller. More...

#include <wpi/simulation/NiDsStadiaControllerSim.hpp>

Inheritance diagram for wpi::sim::NiDsStadiaControllerSim:
wpi::sim::GenericHIDSim

Public Member Functions

 NiDsStadiaControllerSim (const NiDsStadiaController &joystick)
 Constructs from a NiDsStadiaController object.
 NiDsStadiaControllerSim (int port)
 Constructs from a joystick port number.
void SetLeftX (double value)
 Change the left X value of the controller's joystick.
void SetRightX (double value)
 Change the right X value of the controller's joystick.
void SetLeftY (double value)
 Change the left Y value of the controller's joystick.
void SetRightY (double value)
 Change the right Y value of the controller's joystick.
void SetAButton (bool value)
 Change the value of the A button on the controller.
void SetBButton (bool value)
 Change the value of the B button on the controller.
void SetXButton (bool value)
 Change the value of the X button on the controller.
void SetYButton (bool value)
 Change the value of the Y button on the controller.
void SetLeftBumperButton (bool value)
 Change the value of the left bumper button on the controller.
void SetRightBumperButton (bool value)
 Change the value of the right bumper button on the controller.
void SetLeftStickButton (bool value)
 Change the value of the left stick button on the controller.
void SetRightStickButton (bool value)
 Change the value of the right stick button on the controller.
void SetEllipsesButton (bool value)
 Change the value of the ellipses button on the controller.
void SetHamburgerButton (bool value)
 Change the value of the hamburger button on the controller.
void SetStadiaButton (bool value)
 Change the value of the stadia button on the controller.
void SetRightTriggerButton (bool value)
 Change the value of the right trigger button on the controller.
void SetLeftTriggerButton (bool value)
 Change the value of the left trigger button on the controller.
void SetGoogleButton (bool value)
 Change the value of the google button on the controller.
void SetFrameButton (bool value)
 Change the value of the frame button on the controller.
Public Member Functions inherited from wpi::sim::GenericHIDSim
 GenericHIDSim (const GenericHID &joystick)
 Constructs from a GenericHID object.
 GenericHIDSim (int port)
 Constructs from a joystick port number.
void NotifyNewData ()
 Updates joystick data so that new values are visible to the user program.
void SetRawButton (int button, bool value)
 Set the value of a given button.
void SetRawAxis (int axis, double value)
 Set the value of a given axis.
void SetPOV (int pov, DriverStation::POVDirection value)
 Set the value of a given POV.
void SetPOV (DriverStation::POVDirection value)
 Set the value of the default POV (port 0).
void SetAxesMaximumIndex (int maximumIndex)
void SetAxesAvailable (int count)
 Set the axis count of this device.
void SetPOVsMaximumIndex (int maximumIndex)
void SetPOVsAvailable (int count)
 Set the POV count of this device.
void SetButtonsMaximumIndex (int maximumIndex)
void SetButtonsAvailable (uint64_t count)
 Set the button count of this device.
void SetGamepadType (GenericHID::HIDType type)
 Set the type of this device.
void SetSupportedOutputs (GenericHID::SupportedOutputs supportedOutputs)
void SetName (const char *name)
 Set the name of this device.
int32_t GetLeds ()
 Get the value of set LEDs.
double GetRumble (GenericHID::RumbleType type)
 Get the joystick rumble.

Additional Inherited Members

Protected Attributes inherited from wpi::sim::GenericHIDSim
int m_port
 GenericHID port.

Detailed Description

Class to control a simulated NiDsStadia controller.

Constructor & Destructor Documentation

◆ NiDsStadiaControllerSim() [1/2]

wpi::sim::NiDsStadiaControllerSim::NiDsStadiaControllerSim ( const NiDsStadiaController & joystick)
explicit

Constructs from a NiDsStadiaController object.

Parameters
joystickcontroller to simulate

◆ NiDsStadiaControllerSim() [2/2]

wpi::sim::NiDsStadiaControllerSim::NiDsStadiaControllerSim ( int port)
explicit

Constructs from a joystick port number.

Parameters
portport number

Member Function Documentation

◆ SetAButton()

void wpi::sim::NiDsStadiaControllerSim::SetAButton ( bool value)

Change the value of the A button on the controller.

Parameters
valuethe new value

◆ SetBButton()

void wpi::sim::NiDsStadiaControllerSim::SetBButton ( bool value)

Change the value of the B button on the controller.

Parameters
valuethe new value

◆ SetEllipsesButton()

void wpi::sim::NiDsStadiaControllerSim::SetEllipsesButton ( bool value)

Change the value of the ellipses button on the controller.

Parameters
valuethe new value

◆ SetFrameButton()

void wpi::sim::NiDsStadiaControllerSim::SetFrameButton ( bool value)

Change the value of the frame button on the controller.

Parameters
valuethe new value

◆ SetGoogleButton()

void wpi::sim::NiDsStadiaControllerSim::SetGoogleButton ( bool value)

Change the value of the google button on the controller.

Parameters
valuethe new value

◆ SetHamburgerButton()

void wpi::sim::NiDsStadiaControllerSim::SetHamburgerButton ( bool value)

Change the value of the hamburger button on the controller.

Parameters
valuethe new value

◆ SetLeftBumperButton()

void wpi::sim::NiDsStadiaControllerSim::SetLeftBumperButton ( bool value)

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

Parameters
valuethe new value

◆ SetLeftStickButton()

void wpi::sim::NiDsStadiaControllerSim::SetLeftStickButton ( bool value)

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

Parameters
valuethe new value

◆ SetLeftTriggerButton()

void wpi::sim::NiDsStadiaControllerSim::SetLeftTriggerButton ( bool value)

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

Parameters
valuethe new value

◆ SetLeftX()

void wpi::sim::NiDsStadiaControllerSim::SetLeftX ( double value)

Change the left X value of the controller's joystick.

Parameters
valuethe new value

◆ SetLeftY()

void wpi::sim::NiDsStadiaControllerSim::SetLeftY ( double value)

Change the left Y value of the controller's joystick.

Parameters
valuethe new value

◆ SetRightBumperButton()

void wpi::sim::NiDsStadiaControllerSim::SetRightBumperButton ( bool value)

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

Parameters
valuethe new value

◆ SetRightStickButton()

void wpi::sim::NiDsStadiaControllerSim::SetRightStickButton ( bool value)

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

Parameters
valuethe new value

◆ SetRightTriggerButton()

void wpi::sim::NiDsStadiaControllerSim::SetRightTriggerButton ( bool value)

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

Parameters
valuethe new value

◆ SetRightX()

void wpi::sim::NiDsStadiaControllerSim::SetRightX ( double value)

Change the right X value of the controller's joystick.

Parameters
valuethe new value

◆ SetRightY()

void wpi::sim::NiDsStadiaControllerSim::SetRightY ( double value)

Change the right Y value of the controller's joystick.

Parameters
valuethe new value

◆ SetStadiaButton()

void wpi::sim::NiDsStadiaControllerSim::SetStadiaButton ( bool value)

Change the value of the stadia button on the controller.

Parameters
valuethe new value

◆ SetXButton()

void wpi::sim::NiDsStadiaControllerSim::SetXButton ( bool value)

Change the value of the X button on the controller.

Parameters
valuethe new value

◆ SetYButton()

void wpi::sim::NiDsStadiaControllerSim::SetYButton ( bool value)

Change the value of the Y button on the controller.

Parameters
valuethe new value

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