public class GamepadEx
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Gamepad |
gamepad
The retrievable gamepad object
|
Constructor and Description |
---|
GamepadEx(Gamepad gamepad)
The constructor, that contains the gamepad object from the
opmode.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getButton(GamepadKeys.Button button) |
double |
getLeftX() |
double |
getLeftY() |
double |
getRightX() |
double |
getRightY() |
double |
getTrigger(GamepadKeys.Trigger trigger) |
public GamepadEx(Gamepad gamepad)
gamepad
- the gamepad object from the opmodepublic boolean getButton(GamepadKeys.Button button)
button
- the button objectpublic double getTrigger(GamepadKeys.Trigger trigger)
trigger
- the trigger objectpublic double getLeftY()
public double getRightY()
public double getLeftX()
public double getRightX()