public class MustangController
extends Joystick
Modifier and Type | Class and Description |
---|---|
static class |
MustangController.DPadState |
static class |
MustangController.XboxButtons |
Constructor and Description |
---|
MustangController(int port) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAButton() |
boolean |
getBackButton() |
boolean |
getBButton() |
MustangController.DPadState |
getDPadState()
gets angle of the DPad on the XBox controller pressed with increments of 45 degree angle.
|
boolean |
getLeftBumper() |
boolean |
getLeftJoystickButton() |
double |
getLeftStickX()
helps you get various axes and buttons on the XBox controller
|
double |
getLeftStickY() |
double |
getLeftTriggerAxis() |
int |
getPOVValue() |
boolean |
getRightBumper() |
boolean |
getRightJoystickButton() |
double |
getRightStickX() |
double |
getRightStickY() |
double |
getRightTriggerAxis() |
boolean |
getStartButton() |
boolean |
getXButton() |
boolean |
getYButton() |
void |
rumble(double power,
double time)
Sets the rumble on the controller
|
public double getLeftStickX()
public double getLeftStickY()
public double getLeftTriggerAxis()
public double getRightTriggerAxis()
public double getRightStickX()
public double getRightStickY()
public boolean getAButton()
public boolean getBButton()
public boolean getXButton()
public boolean getYButton()
public boolean getLeftBumper()
public boolean getRightBumper()
public boolean getBackButton()
public boolean getStartButton()
public boolean getLeftJoystickButton()
public boolean getRightJoystickButton()
public int getPOVValue()
public void rumble(double power, double time)
power
- The desired power of the rumble [0, 1]time
- The time to rumble for in secondspublic MustangController.DPadState getDPadState()