JoystickButton¶
Bases:
wpilib.buttons.Button
A
button.Button
that gets its state from aGenericHID
.Create a joystick button for triggering commands.
Parameters: - joystick – The GenericHID object that has the button (e.g.
Joystick
,KinectStick
, etc) - buttonNumber (
int
) – The button number (seeGenericHID.getRawButton()
)
Gets the value of the joystick button.
Return type: bool
Returns: The value of the joystick button
- joystick – The GenericHID object that has the button (e.g.