public class JoystickButton extends Button
Button that gets its state from a GenericHID.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, whileHeldcancelWhenActive, getSmartDashboardType, getTable, initTable, toggleWhenActive, whenActive, whenInactive, whileActivepublic 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)