public class LinuxXbox360Controller extends Xbox360Controller
Modifier and Type | Field and Description |
---|---|
static int |
AXIS_LEFT_STICK_X |
static int |
AXIS_LEFT_STICK_Y |
static int |
AXIS_LEFT_TRIGGER |
static int |
AXIS_RIGHT_STICK_X |
static int |
AXIS_RIGHT_STICK_Y |
static int |
AXIS_RIGHT_TRIGGER |
static int |
BUTTON_A |
static int |
BUTTON_B |
static int |
BUTTON_BACK |
static int |
BUTTON_DOWN |
static int |
BUTTON_GUIDE |
static int |
BUTTON_LEFT |
static int |
BUTTON_LEFT_SHOULDER |
static int |
BUTTON_LEFT_STICK |
static int |
BUTTON_RIGHT |
static int |
BUTTON_RIGHT_SHOULDER |
static int |
BUTTON_RIGHT_STICK |
static int |
BUTTON_START |
static int |
BUTTON_UP |
static int |
BUTTON_X |
static int |
BUTTON_Y |
ID
Constructor and Description |
---|
LinuxXbox360Controller(com.badlogic.gdx.controllers.Controller controller) |
LinuxXbox360Controller(com.badlogic.gdx.controllers.Controller controller,
DeadZone leftStickDeadZone,
DeadZone rightStickDeadZone) |
Modifier and Type | Method and Description |
---|---|
boolean |
accelerometerMoved(com.badlogic.gdx.controllers.Controller controller,
int accelerometerCode,
com.badlogic.gdx.math.Vector3 value) |
boolean |
axisMoved(com.badlogic.gdx.controllers.Controller controller,
int axisCode,
float value) |
boolean |
buttonDown(com.badlogic.gdx.controllers.Controller controller,
int buttonCode) |
boolean |
buttonUp(com.badlogic.gdx.controllers.Controller controller,
int buttonCode) |
void |
connected(com.badlogic.gdx.controllers.Controller controller) |
void |
disconnected(com.badlogic.gdx.controllers.Controller controller) |
boolean |
povMoved(com.badlogic.gdx.controllers.Controller controller,
int povCode,
com.badlogic.gdx.controllers.PovDirection value) |
boolean |
xSliderMoved(com.badlogic.gdx.controllers.Controller controller,
int sliderCode,
boolean value) |
boolean |
ySliderMoved(com.badlogic.gdx.controllers.Controller controller,
int sliderCode,
boolean value) |
addListener, addListener, clearListeners, getControllerType, getLeftStickDeadZone, getListener, getRightStickDeadZone, getTotalListeners, notifyButtonDown, notifyButtonUp, notifyDisconnected, notifyLeftStickXMoved, notifyLeftStickYMoved, notifyLeftTriggerMoved, notifyRightStickXMoved, notifyRightStickYMoved, notifyRightTriggerMoved, removeListener, removeListener, setLeftStickDeadZone, setRightStickDeadZone
public static final int BUTTON_UP
public static final int BUTTON_DOWN
public static final int BUTTON_LEFT
public static final int BUTTON_RIGHT
public static final int BUTTON_BACK
public static final int BUTTON_START
public static final int BUTTON_LEFT_STICK
public static final int BUTTON_RIGHT_STICK
public static final int BUTTON_LEFT_SHOULDER
public static final int BUTTON_RIGHT_SHOULDER
public static final int BUTTON_GUIDE
public static final int BUTTON_A
public static final int BUTTON_B
public static final int BUTTON_X
public static final int BUTTON_Y
public static final int AXIS_LEFT_TRIGGER
public static final int AXIS_RIGHT_TRIGGER
public static final int AXIS_LEFT_STICK_X
public static final int AXIS_LEFT_STICK_Y
public static final int AXIS_RIGHT_STICK_X
public static final int AXIS_RIGHT_STICK_Y
public LinuxXbox360Controller(com.badlogic.gdx.controllers.Controller controller)
public void connected(com.badlogic.gdx.controllers.Controller controller)
public void disconnected(com.badlogic.gdx.controllers.Controller controller)
public boolean buttonDown(com.badlogic.gdx.controllers.Controller controller, int buttonCode)
public boolean buttonUp(com.badlogic.gdx.controllers.Controller controller, int buttonCode)
public boolean axisMoved(com.badlogic.gdx.controllers.Controller controller, int axisCode, float value)
public boolean povMoved(com.badlogic.gdx.controllers.Controller controller, int povCode, com.badlogic.gdx.controllers.PovDirection value)
public boolean xSliderMoved(com.badlogic.gdx.controllers.Controller controller, int sliderCode, boolean value)
public boolean ySliderMoved(com.badlogic.gdx.controllers.Controller controller, int sliderCode, boolean value)
public boolean accelerometerMoved(com.badlogic.gdx.controllers.Controller controller, int accelerometerCode, com.badlogic.gdx.math.Vector3 value)