Trigger.ButtonScheduler
Constructor and Description |
---|
JoystickButton(GenericHID joystick,
int buttonNumber)
Create a joystick button for triggering commands
|
Modifier and Type | Method and Description |
---|---|
boolean |
get()
Gets the value of the joystick button
|
cancelWhenPressed, toggleWhenPressed, whenPressed, whenReleased, whileHeld
cancelWhenActive, getSmartDashboardType, getTable, initTable, toggleWhenActive, whenActive, whenInactive, whileActive
public JoystickButton(GenericHID joystick, int buttonNumber)
joystick
- The GenericHID object that has the button (e.g. Joystick, KinectStick, etc)buttonNumber
- The button number (see GenericHID.getRawButton(int)
Copyright © 2015. All rights reserved.