public class InputDevice
All input devices are abstracted to look something like the ubiquitious xbox controller
Constructor and Description |
---|
InputDevice()
All input devices are abstracted to look something like the ubiquitious xbox controller
|
Modifier and Type | Method and Description |
---|---|
boolean |
getA() |
Vec |
getAimingVec() |
boolean |
getB() |
int |
getEntity() |
boolean |
getFire() |
boolean |
getLeftBumper() |
Vec |
getLeftStick() |
float |
getLeftTrigger() |
Vec |
getMovementVec() |
boolean |
getRightBumper() |
Vec |
getRightStick() |
float |
getRightTrigger() |
boolean |
getX() |
boolean |
getY() |
void |
rumble(float left,
float right,
int duration_ms) |
void |
setEntity(int p) |
public InputDevice()
All input devices are abstracted to look something like the ubiquitious xbox controller
public void rumble(float left, float right, int duration_ms)
public Vec getLeftStick()
public Vec getRightStick()
public Vec getMovementVec()
public Vec getAimingVec()
public float getLeftTrigger()
public float getRightTrigger()
public boolean getA()
public boolean getB()
public boolean getX()
public boolean getY()
public boolean getLeftBumper()
public boolean getRightBumper()
public boolean getFire()
public int getEntity()
public void setEntity(int p)