|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.wpi.first.wpilibj.buttons.Button
edu.wpi.first.wpilibj.buttons.JoystickButton
public class JoystickButton
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.buttons.Button |
|---|
Button.ButtonScheduler |
| 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 |
| Methods inherited from class edu.wpi.first.wpilibj.buttons.Button |
|---|
getTable, getType, whenPressed, whenReleased, whileHeld |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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)| Method Detail |
|---|
public boolean get()
get in class Button
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||