| Modifier and Type | Class and Description |
|---|---|
private class |
XBoxController.MagAxis |
Joystick.JoystickAxis, Joystick.JoystickButton, Joystick.JSID, Joystick.RumbleSide| Modifier and Type | Field and Description |
|---|---|
static int |
AXIS_MAG_LEFT
Magnitude Left Stick Axis ID.
|
static int |
AXIS_MAG_RIGHT
Magnitude Right Stick Axis ID.
|
static int |
AXIS_TRIGGER_LEFT
Left Trigger Axis ID.
|
static int |
AXIS_TRIGGER_RIGHT
Right Trigger Axis ID.
|
static int |
AXIS_X_LEFT
Left X Axis ID.
|
static int |
AXIS_X_RIGHT
Right X Axis ID.
|
static int |
AXIS_Y_LEFT
Left Y Axis ID.
|
static int |
AXIS_Y_RIGHT
Right Y Axis ID.
|
static int |
BTN_A
A Button ID.
|
static int |
BTN_AXIS_TRIGGER_LEFT
Left Trigger Axis Button ID.
|
static int |
BTN_AXIS_TRIGGER_RIGHT
Right Trigger Axis Button ID.
|
static int |
BTN_AXIS_X_LEFT
Left X Axis Button ID.
|
static int |
BTN_AXIS_X_RIGHT
Right X Axis Button ID.
|
static int |
BTN_AXIS_Y_LEFT
Left Y Axis Button ID.
|
static int |
BTN_AXIS_Y_RIGHT
Right Y Axis Button ID.
|
static int |
BTN_B
B Button ID.
|
static int |
BTN_SELECT
Back Button ID.
|
static int |
BTN_SHOULDER_LEFT
Left Shoulder Button ID.
|
static int |
BTN_SHOULDER_RIGHT
Right Shoulder Button ID.
|
static int |
BTN_START
Start Button ID.
|
static int |
BTN_STICK_LEFT
Left Stick Button ID.
|
static int |
BTN_STICK_RIGHT
Right Stick Button ID.
|
static int |
BTN_X
X Button ID.
|
static int |
BTN_Y
Y Button ID.
|
static int |
POV_HAT
Hat X Axis ID.
|
kNumJoysticksm_axes, m_btns, m_numAxes, m_numBtns| Constructor and Description |
|---|
XBoxController(Joystick.JSID port)
A better Joystick implementation for the XBox Controller.
|
| Modifier and Type | Method and Description |
|---|---|
HIDAxis |
getAxisLeftMagnitude()
Get the Left Stick Magnitude Axis.
|
HIDAxis |
getAxisLeftTrigger()
Get the Left Trigger Axis.
|
double |
getAxisLeftTriggerValue()
Get the Left Trigger Axis value.
|
double |
getAxisLeftValue()
Get the Left Stick Magnitude Axis value.
|
HIDAxis |
getAxisLeftX()
Get the Left X Axis.
|
double |
getAxisLeftXValue()
Get the Left X Axis value.
|
HIDAxis |
getAxisLeftY()
Get the Left Y Axis.
|
double |
getAxisLeftYValue()
Get the Left Y Axis value.
|
HIDAxis |
getAxisRightMagnitude()
Get the Right Stick Magnitude Axis.
|
HIDAxis |
getAxisRightTrigger()
Get the Right Trigger Axis.
|
double |
getAxisRightTriggerValue()
Get the Right Trigger Axis value.
|
double |
getAxisRightValue()
Get the Right Stick Magnitude Axis value.
|
HIDAxis |
getAxisRightX()
Get the Right X Axis.
|
double |
getAxisRightXValue()
Get the Right X Axis value.
|
HIDAxis |
getAxisRightY()
Get the Right Y Axis.
|
double |
getAxisRightYValue()
Get the Right Y Axis value.
|
HIDButton |
getButtonA()
Get the A Button.
|
boolean |
getButtonAValue()
Get the A Button value.
|
HIDButton |
getButtonB()
Get the B Button.
|
boolean |
getButtonBValue()
Get the B Button value.
|
HIDButton |
getButtonLeftShoulder()
Get the Left Shoulder Button.
|
boolean |
getButtonLeftShoulderValue()
Get the Left Shoulder Button value.
|
HIDButton |
getButtonLeftStick()
Get the Left Stick Button.
|
boolean |
getButtonLeftStickValue()
Get the Left Stick Button value.
|
HIDButton |
getButtonRightShoulder()
Get the Right Shoulder Button.
|
boolean |
getButtonRightShoulderValue()
Get the Right Shoulder Button value.
|
HIDButton |
getButtonRightStick()
Get the Right Stick Button.
|
boolean |
getButtonRightStickValue()
Get the Right Stick Button value.
|
HIDButton |
getButtonSelect()
Get the Select Button.
|
boolean |
getButtonSelectValue()
Get the Select Button value.
|
HIDButton |
getButtonStart()
Get the Start Button.
|
boolean |
getButtonStartValue()
Get the Start Button value.
|
HIDButton |
getButtonX()
Get the X Button.
|
boolean |
getButtonXValue()
Get the X Button value.
|
HIDButton |
getButtonY()
Get the Y Button.
|
boolean |
getButtonYValue()
Get the Y Button value.
|
int |
getHat()
Get the D-Pad/Hat POV Vale.
|
double |
getLeftDirectionDegrees()
Get the direction of the vector formed by the left stick and its origin
in degrees
uses acos(-1) to represent Pi due to absence of readily accessable Pi
constant in C++
|
double |
getLeftDirectionRadians()
Get the direction of the vector formed by the left stick and its origin
in radians
|
double |
getRightDirectionDegrees()
Get the direction of the vector formed by the right stick and its origin
in degrees
uses acos(-1) to represent Pi due to absence of readily accessable Pi
constant in C++
|
double |
getRightDirectionRadians()
Get the direction of the vector formed by the right stick and its origin
in radians
|
checkStick, complainJoystickMissing, disableModule, enableModule, getModuleEnabled, getPOV, getStick, getStickAxis, getStickButton, getStickPort, getStickPOV, setJoystickData, setOutput, setOutputs, setRumbleaddAxisButton, addButton, checkAxis, checkButton, getAxis, getButton, getRawAxis, getRawButton, setAxis, setAxisDeadband, setAxisInverted, setButtonpublic static final int AXIS_X_LEFT
public static final int AXIS_Y_LEFT
public static final int AXIS_TRIGGER_LEFT
public static final int AXIS_TRIGGER_RIGHT
public static final int AXIS_X_RIGHT
public static final int AXIS_Y_RIGHT
public static final int AXIS_MAG_LEFT
public static final int AXIS_MAG_RIGHT
public static final int POV_HAT
public static final int BTN_A
public static final int BTN_B
public static final int BTN_X
public static final int BTN_Y
public static final int BTN_SHOULDER_LEFT
public static final int BTN_SHOULDER_RIGHT
public static final int BTN_START
public static final int BTN_SELECT
public static final int BTN_STICK_LEFT
public static final int BTN_STICK_RIGHT
public static final int BTN_AXIS_X_LEFT
public static final int BTN_AXIS_Y_LEFT
public static final int BTN_AXIS_TRIGGER_LEFT
public static final int BTN_AXIS_TRIGGER_RIGHT
public static final int BTN_AXIS_X_RIGHT
public static final int BTN_AXIS_Y_RIGHT
public XBoxController(Joystick.JSID port)
port - The Joystick Number this XBoxController is on.public HIDAxis getAxisLeftX()
public HIDAxis getAxisLeftY()
public HIDAxis getAxisLeftTrigger()
public HIDAxis getAxisRightTrigger()
public HIDAxis getAxisRightX()
public HIDAxis getAxisRightY()
public HIDAxis getAxisLeftMagnitude()
public HIDAxis getAxisRightMagnitude()
public HIDButton getButtonA()
public HIDButton getButtonB()
public HIDButton getButtonX()
public HIDButton getButtonY()
public HIDButton getButtonLeftShoulder()
public HIDButton getButtonRightShoulder()
public HIDButton getButtonStart()
public HIDButton getButtonSelect()
public HIDButton getButtonLeftStick()
public HIDButton getButtonRightStick()
public double getAxisLeftXValue()
public double getAxisLeftYValue()
public double getAxisLeftTriggerValue()
public double getAxisRightTriggerValue()
public double getAxisRightXValue()
public double getAxisRightYValue()
public double getAxisLeftValue()
public double getAxisRightValue()
public int getHat()
public boolean getButtonAValue()
public boolean getButtonBValue()
public boolean getButtonXValue()
public boolean getButtonYValue()
public boolean getButtonLeftShoulderValue()
public boolean getButtonRightShoulderValue()
public boolean getButtonStartValue()
public boolean getButtonSelectValue()
public boolean getButtonLeftStickValue()
public boolean getButtonRightStickValue()
public double getLeftDirectionRadians()
public double getLeftDirectionDegrees()
public double getRightDirectionRadians()
public double getRightDirectionDegrees()