49 .GetDefaultButtonLoop())
const;
61 .GetDefaultButtonLoop())
const;
73 .GetDefaultButtonLoop())
const;
85 .GetDefaultButtonLoop())
const;
97 .GetDefaultButtonLoop())
const;
109 .GetDefaultButtonLoop())
const;
121 .GetDefaultButtonLoop())
const;
133 .GetDefaultButtonLoop())
const;
145 .GetDefaultButtonLoop())
const;
157 .GetDefaultButtonLoop())
const;
174 .GetDefaultButtonLoop())
const;
191 .GetDefaultButtonLoop())
const;
A declarative way to bind a set of actions to a loop and execute them when the loop is polled.
Definition EventLoop.hpp:15
Handle input from NiDsXbox controllers connected to the Driver Station.
Definition NiDsXboxController.hpp:30
CommandGenericHID(int port)
Construct an instance of a device.
Trigger RightTrigger(double threshold=0.5, wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the axis value of the right trigger.
double GetRightTriggerAxis() const
Get the right trigger axis value of the controller.
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.
Trigger X(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the X button's digital signal.
Trigger Back(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the back button's digital signal.
CommandNiDsXboxController(int port)
Construct an instance of a controller.
wpi::NiDsXboxController & GetHID()
Get the underlying GenericHID object.
Trigger LeftTrigger(double threshold=0.5, wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the axis value of the left trigger.
double GetLeftY() const
Get the Y axis value of left side of the controller.
Trigger Y(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Y button's digital signal.
Trigger LeftBumper(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the left bumper button's digital signal.
Trigger B(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the B button's digital signal.
Trigger LeftStick(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the left stick button's digital signal.
double GetLeftTriggerAxis() const
Get the left trigger axis value of the controller.
Trigger A(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the A button's digital signal.
double GetRightY() const
Get the Y axis value of right side of the controller.
Trigger RightStick(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the right stick button's digital signal.
Trigger RightBumper(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the right bumper button's digital signal.
Trigger Start(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the start button's digital signal.
static CommandScheduler & GetInstance()
Returns the Scheduler instance.
This class provides an easy way to link commands to conditions.
Definition Trigger.hpp:31
Definition CommandNiDsStadiaController.hpp:15