commands2.button Package

CommandDualSenseController(hid)

A version of wpilib.DualSenseController with Trigger factories for command-based.

CommandDualSenseEdgeController(hid)

A version of wpilib.DualSenseEdgeController with Trigger factories for command-based.

CommandDualShock4Controller(hid)

A version of wpilib.DualShock4Controller with Trigger factories for command-based.

CommandGameCubeController(hid)

A version of wpilib.GameCubeController with Trigger factories for command-based.

CommandGamepad(hid)

A version of wpilib.Gamepad with Trigger factories for command-based.

CommandGenericHID(hid)

A version of wpilib.GenericHID with Trigger factories for command-based.

CommandJoystick(port)

A version of wpilib.Joystick with Trigger factories for command-based.

CommandLogitechF310Controller(hid)

A version of wpilib.LogitechF310Controller with Trigger factories for command-based.

CommandNiDsPS4Controller(port)

A version of NI DS PS4Controller with Trigger factories for command-based.

CommandNiDsXboxController(port)

A version of NI DS XboxController with Trigger factories for command-based.

CommandSteamController(hid)

A version of wpilib.SteamController with Trigger factories for command-based.

CommandSwitch2GCController(hid)

A version of wpilib.Switch2GCController with Trigger factories for command-based.

CommandSwitch2ProController(hid)

A version of wpilib.Switch2ProController with Trigger factories for command-based.

CommandSwitchN64Controller(hid)

A version of wpilib.SwitchN64Controller with Trigger factories for command-based.

CommandSwitchProController(hid)

A version of wpilib.SwitchProController with Trigger factories for command-based.

CommandXboxController(hid)

A version of wpilib.XboxController with Trigger factories for command-based.

JoystickButton(joystick, button_number)

A Button that gets its state from a wpilib.GenericHID.

NetworkButton()

A Button that uses a ntcore.NetworkTable boolean field.

POVButton(joystick, angle[, pov_number])

A Button that gets its state from a POV on a wpilib.GenericHID.

Trigger()

This class provides an easy way to link commands to conditions.