JoystickButton

class commands2.button.JoystickButton(joystick: GenericHID, buttonNumber: int)[source]

Bases: Trigger

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

Creates a joystick button for triggering commands.

Parameters: