JoystickButton

class wpilib.buttons.JoystickButton(joystick, buttonNumber)[source]

Bases: wpilib.buttons.Button

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

Create a joystick button for triggering commands.

Parameters:
get()[source]

Gets the value of the joystick button.

Returns:The value of the joystick button