Modifier and Type | Class and Description |
---|---|
static class |
GenericHID.Hand
Which hand the Human Interface Device is associated with.
|
Constructor and Description |
---|
GenericHID() |
Modifier and Type | Method and Description |
---|---|
boolean |
getBumper()
Is the bumper pressed
|
abstract boolean |
getBumper(GenericHID.Hand hand)
Is the bumper pressed
|
int |
getPOV() |
abstract int |
getPOV(int pov) |
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
|
public final double getX()
public abstract double getX(GenericHID.Hand hand)
hand
- which hand, left or rightpublic final double getY()
public abstract double getY(GenericHID.Hand hand)
hand
- which hand, left or rightpublic final double getZ()
public abstract double getZ(GenericHID.Hand hand)
hand
- which hand, left or rightpublic abstract double getTwist()
public abstract double getThrottle()
public abstract double getRawAxis(int which)
which
- index of the axispublic final boolean getTrigger()
public abstract boolean getTrigger(GenericHID.Hand hand)
hand
- which handpublic final boolean getTop()
public abstract boolean getTop(GenericHID.Hand hand)
hand
- which handpublic final boolean getBumper()
public abstract boolean getBumper(GenericHID.Hand hand)
hand
- which handpublic abstract boolean getRawButton(int button)
button
- which button numberpublic abstract int getPOV(int pov)
public int getPOV()
Copyright © 2015. All rights reserved.