edu.wpi.first.wpilibj.buttons
Class JoystickButton
java.lang.Object
   edu.wpi.first.wpilibj.buttons.Trigger
edu.wpi.first.wpilibj.buttons.Trigger
       edu.wpi.first.wpilibj.buttons.Button
edu.wpi.first.wpilibj.buttons.Button
           edu.wpi.first.wpilibj.buttons.JoystickButton
edu.wpi.first.wpilibj.buttons.JoystickButton
- All Implemented Interfaces: 
- Sendable
- public class JoystickButton 
- extends Button
- Author:
- bradmiller
 
 
| Constructor Summary | 
| JoystickButton(GenericHID joystick,
               int buttonNumber)Create a joystick button for triggering commands
 | 
 
| Method Summary | 
|  boolean | get()Gets the value of the joystick button
 | 
 
 
 
 
JoystickButton
public JoystickButton(GenericHID joystick,
                      int buttonNumber)
- Create a joystick button for triggering commands
 
- Parameters:
- joystick- The GenericHID object that has the button (e.g. Joystick, KinectStick, etc)
- buttonNumber- The button number (see- GenericHID.getRawButton(int)
 
get
public boolean get()
- Gets the value of the joystick button
 
- 
- Specified by:
- getin class- Trigger
 
- 
- Returns:
- The value of the joystick button
 
"For updated information see the Java FRC site"