public abstract class GamepadBase extends GenericHID
GenericHID.Hand, GenericHID.HIDType, GenericHID.RumbleType| Constructor and Description | 
|---|
| GamepadBase(int port) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | getBumper()Is the bumper pressed. | 
| abstract boolean | getBumper(GenericHID.Hand hand)Is the bumper pressed. | 
| abstract java.lang.String | getName()Get the name of the HID. | 
| abstract int | getPOV(int pov)Get the angle in degrees of a POV on the HID. | 
| abstract int | getPOVCount()For the current HID, return the number of POVs. | 
| abstract double | getRawAxis(int axis)Get the raw axis. | 
| abstract boolean | getRawButton(int button)Is the given button pressed. | 
| boolean | getStickButton() | 
| abstract boolean | getStickButton(GenericHID.Hand hand) | 
| abstract GenericHID.HIDType | getType()Get the type of the HID. | 
| abstract void | setOutput(int outputNumber,
         boolean value)Set a single HID output value for the HID. | 
| abstract void | setOutputs(int value)Set all HID output values for the HID. | 
| abstract void | setRumble(GenericHID.RumbleType type,
         double value)Set the rumble output for the HID. | 
public GamepadBase(int port)
public abstract double getRawAxis(int axis)
GenericHIDgetRawAxis in class GenericHIDaxis - index of the axispublic abstract boolean getBumper(GenericHID.Hand hand)
hand - which handpublic boolean getBumper()
public abstract boolean getStickButton(GenericHID.Hand hand)
public boolean getStickButton()
public abstract boolean getRawButton(int button)
GenericHIDgetRawButton in class GenericHIDbutton - which button numberpublic abstract int getPOV(int pov)
GenericHIDThe POV angles start at 0 in the up direction, and increase clockwise (eg right is 90, upper-left is 315).
getPOV in class GenericHIDpov - The index of the POV to read (starting at 0)public abstract int getPOVCount()
GenericHIDgetPOVCount in class GenericHIDpublic abstract GenericHID.HIDType getType()
GenericHIDgetType in class GenericHIDpublic abstract java.lang.String getName()
GenericHIDgetName in class GenericHIDpublic abstract void setOutput(int outputNumber, boolean value)
GenericHIDsetOutput in class GenericHIDoutputNumber - The index of the output to set (1-32)value - The value to set the output topublic abstract void setOutputs(int value)
GenericHIDsetOutputs in class GenericHIDvalue - The 32 bit output value (1 bit for each output)public abstract void setRumble(GenericHID.RumbleType type, double value)
GenericHIDsetRumble in class GenericHIDtype - Which rumble value to setvalue - The normalized value (0 to 1) to set the rumble to