46 .GetDefaultButtonLoop())
const;
58 .GetDefaultButtonLoop())
const;
70 .GetDefaultButtonLoop())
const;
82 .GetDefaultButtonLoop())
const;
94 .GetDefaultButtonLoop())
const;
106 .GetDefaultButtonLoop())
const;
118 .GetDefaultButtonLoop())
const;
130 .GetDefaultButtonLoop())
const;
142 .GetDefaultButtonLoop())
const;
154 .GetDefaultButtonLoop())
const;
166 .GetDefaultButtonLoop())
const;
178 .GetDefaultButtonLoop())
const;
190 .GetDefaultButtonLoop())
const;
202 .GetDefaultButtonLoop())
const;
214 .GetDefaultButtonLoop())
const;
226 .GetDefaultButtonLoop())
const;
238 .GetDefaultButtonLoop())
const;
263 .GetDefaultButtonLoop())
const;
288 .GetDefaultButtonLoop())
const;
300 .GetDefaultButtonLoop())
const;
312 .GetDefaultButtonLoop())
const;
324 .GetDefaultButtonLoop())
const;
336 .GetDefaultButtonLoop())
const;
348 .GetDefaultButtonLoop())
const;
360 .GetDefaultButtonLoop())
const;
377 .GetDefaultButtonLoop())
const;
393 double threshold = 0.5,
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 Gamepad controllers connected to the Driver Station.
Definition Gamepad.hpp:27
Button
Represents a digital button on an Gamepad.
Definition Gamepad.hpp:30
Axis
Represents an axis on an Gamepad.
Definition Gamepad.hpp:86
Trigger EastFace(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the East Face button's digital signal.
Trigger Misc3(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Miscellaneous 3 button's digital signal.
double GetRightTriggerAxis() const
Get the right trigger axis value of the controller.
Trigger DpadDown(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the D-pad down button's digital signal.
double GetLeftX() const
Get the X axis value of left 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 LeftPaddle2(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Left Paddle 2 button's digital signal.
Trigger Misc2(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Miscellaneous 2 button's digital signal.
CommandGamepad(int port)
Construct an instance of a controller.
double GetLeftTriggerAxis() const
Get the left trigger axis value of the controller.
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.
Trigger Back(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Back button's digital signal.
double GetRightY() const
Get the Y axis value of right side of the controller.
Trigger DpadRight(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the D-pad right button's digital signal.
wpi::Gamepad & GetHID()
Get the underlying GenericHID object.
Trigger NorthFace(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the North Face button's digital signal.
Trigger Misc1(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Miscellaneous 1 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 DpadLeft(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the D-pad left button's digital signal.
Trigger DpadUp(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the D-pad up button's digital signal.
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.
Trigger WestFace(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the West Face button's digital signal.
Trigger LeftPaddle1(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Left Paddle 1 button's digital signal.
Trigger SouthFace(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the South Face button's digital signal.
Trigger Guide(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Guide button's digital signal.
Trigger AxisMagnitudeGreaterThan(wpi::Gamepad::Axis axis, double threshold, wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance that is true when the axis magnitude value is greater than threshold,...
Trigger Button(enum wpi::Gamepad::Button button, wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs an event instance around this button's digital signal.
Trigger RightPaddle2(wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Right Paddle 2 button's digital signal.
double GetRightX() const
Get the X axis value of right side of the controller.
Trigger Misc4(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Miscellaneous 4 button's digital signal.
Trigger LeftBumper(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the right bumper button's digital signal.
Trigger Touchpad(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Touchpad button's digital signal.
double GetLeftY() const
Get the Y axis value of left side of the controller.
Trigger AxisGreaterThan(wpi::Gamepad::Axis axis, double threshold, wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance that is true when the axis value is greater than threshold,...
Trigger AxisLessThan(wpi::Gamepad::Axis axis, double threshold, wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance that is true when the axis value is less than threshold,...
Trigger Misc6(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Miscellaneous 6 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.
Trigger Start(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Start button's digital signal.
Trigger Misc5(wpi::EventLoop *loop=CommandScheduler::GetInstance() .GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Miscellaneous 5 button's digital signal.
Trigger RightPaddle1(wpi::EventLoop *loop=CommandScheduler::GetInstance().GetDefaultButtonLoop()) const
Constructs a Trigger instance around the Right Paddle 1 button's digital signal.
CommandGenericHID(int port)
Construct an instance of a device.
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