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.ControllerUnpluggedException
public double getLeftY() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public double getRightX() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public double getRightY() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public double getLeftTrigger() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public double getRightTrigger() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public boolean aPressed() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public boolean bPressed() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public boolean xPressed() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public boolean yPressed() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public boolean leftBumperPressed() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public boolean rightBumperPressed() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public int getDpadX() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException
public int getDpadY() throws com.studiohartman.jamepad.ControllerUnpluggedException
com.studiohartman.jamepad.ControllerUnpluggedException