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, rumble
getRawAxis, getWPIJoystick, getX, getY, getZ
public 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()
GameController
getX2
in class GameController
public double getY2()
GameController
getY2
in class GameController