| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wpi.first.wpilibj.GenericHID
public abstract class GenericHID
GenericHID Interface
| Nested Class Summary | |
|---|---|
| static class | GenericHID.HandWhich hand the Human Interface Device is associated with. | 
| Constructor Summary | |
|---|---|
| GenericHID() | |
| Method Summary | |
|---|---|
|  boolean | getBumper()Is the bumper pressed | 
| abstract  boolean | getBumper(GenericHID.Hand hand)Is the bumper pressed | 
| abstract  double | getRawAxis(int which)Get the raw axis | 
| abstract  boolean | getRawButton(int button)Is the given button pressed | 
| abstract  double | getThrottle()Get the throttle | 
|  boolean | getTop()Is the top button pressed | 
| abstract  boolean | getTop(GenericHID.Hand hand)Is the top button pressed | 
|  boolean | getTrigger()Is the trigger pressed | 
| abstract  boolean | getTrigger(GenericHID.Hand hand)Is the trigger pressed | 
| abstract  double | getTwist()Get the twist value | 
|  double | getX()Get the x position of the HID | 
| abstract  double | getX(GenericHID.Hand hand)Get the x position of HID | 
|  double | getY()Get the y position of the HID | 
| abstract  double | getY(GenericHID.Hand hand)Get the y position of the HID | 
|  double | getZ()Get the z position of the HID | 
| abstract  double | getZ(GenericHID.Hand hand)Get the z position of the HID | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GenericHID()
| Method Detail | 
|---|
public final double getX()
public abstract double getX(GenericHID.Hand hand)
hand - which hand, left or right
public final double getY()
public abstract double getY(GenericHID.Hand hand)
hand - which hand, left or right
public final double getZ()
public abstract double getZ(GenericHID.Hand hand)
hand - which hand, left or right
public abstract double getTwist()
public abstract double getThrottle()
public abstract double getRawAxis(int which)
which - index of the axis
public final boolean getTrigger()
public abstract boolean getTrigger(GenericHID.Hand hand)
hand - which hand
public final boolean getTop()
public abstract boolean getTop(GenericHID.Hand hand)
hand - which hand
public final boolean getBumper()
public abstract boolean getBumper(GenericHID.Hand hand)
hand - which hand
public abstract boolean getRawButton(int button)
button - which button number
| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||