public class XboxControl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static com.studiohartman.jamepad.ControllerManager |
controllers |
static com.studiohartman.jamepad.ControllerIndex |
currController |
| Constructor and Description |
|---|
XboxControl()
Constructor for XboxControl from jamePad
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
aPressed()
used to know if a is pressed
|
boolean |
bPressed()
used to know if b is pressed
|
int |
getDpadX()
used to get dpadx value
|
int |
getDpadY()
used to get dpadY value
|
double |
getLeftTrigger()
used to get left trigger value
|
double |
getLeftX()
Used to get leftX Value
|
double |
getLeftY()
Used to get leftY value
|
double |
getRightTrigger()
used to get right trigger value
|
double |
getRightX()
Used to get right x value
|
double |
getRightY()
used to get right y value
|
boolean |
leftBumperPressed()
used to know if left bumper is pressed
|
boolean |
rightBumperPressed()
Used to know if right bumper is pressed
|
boolean |
xPressed()
used to know if x is pressed
|
boolean |
yPressed()
used to know if why is pressed
|
public static com.studiohartman.jamepad.ControllerManager controllers
public static com.studiohartman.jamepad.ControllerIndex currController
public double getLeftX()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic double getLeftY()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic double getRightX()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic double getRightY()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic double getLeftTrigger()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic double getRightTrigger()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic boolean aPressed()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic boolean bPressed()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic boolean xPressed()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic boolean yPressed()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic boolean leftBumperPressed()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic boolean rightBumperPressed()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic int getDpadX()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedExceptionpublic int getDpadY()
throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException