public class XboxController extends GameController
| Modifier and Type | Field and Description |
|---|---|
Button |
a |
Button |
b |
ButtonGroup |
bumpers |
Button |
leftBumper |
Button |
leftJoyButton |
Button |
leftTrigger |
Button |
rightBumper |
Button |
rightJoyButton |
Button |
rightTrigger |
Button |
select |
Button |
start |
ButtonGroup |
triggers |
Button |
x |
Button |
y |
rumbleTimer| Constructor and Description |
|---|
XboxController(int port)
Creates an XboxController on a port.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getLeftTrigger()
Gets the value of the left trigger.
|
double |
getRightTrigger()
Gets the value of the right trigger.
|
double |
getX2()
Gets the X axis of the second joystick.
|
double |
getY2()
Gets the Y axis of the second joystick.
|
boolean |
isLeftTriggerPressed()
Checks if the left trigger is pressed down.
|
boolean |
isRightTriggerPressed()
Checks if the right trigger is pressed down.
|
getDPad, rumble, rumblegetRawAxis, getWPIJoystick, getX, getY, getZpublic Button a
public Button b
public Button x
public Button y
public Button start
public Button select
public Button leftBumper
public Button rightBumper
public Button leftJoyButton
public Button rightJoyButton
public Button leftTrigger
public Button rightTrigger
public ButtonGroup bumpers
public ButtonGroup triggers
public XboxController(int port)
port - The port.public double getLeftTrigger()
public double getRightTrigger()
public boolean isLeftTriggerPressed()
public boolean isRightTriggerPressed()
public double getX2()
GameControllergetX2 in class GameControllerpublic double getY2()
GameControllergetY2 in class GameController