public class WindowsPS4Controller extends PS4Controller
Modifier and Type | Field and Description |
---|---|
static int |
AXIS_L2 |
static int |
AXIS_LEFT_STICK_X |
static int |
AXIS_LEFT_STICK_Y |
static int |
AXIS_R2 |
static int |
AXIS_RIGHT_STICK_X |
static int |
AXIS_RIGHT_STICK_Y |
static int |
BUTTON_CIRCLE |
static int |
BUTTON_L1 |
static int |
BUTTON_L2 |
static int |
BUTTON_L3 |
static int |
BUTTON_OPTIONS |
static int |
BUTTON_PS |
static int |
BUTTON_R1 |
static int |
BUTTON_R2 |
static int |
BUTTON_R3 |
static int |
BUTTON_SHARE |
static int |
BUTTON_SQUARE |
static int |
BUTTON_TOUCHPAD |
static int |
BUTTON_TRIANGLE |
static int |
BUTTON_X |
static int |
POV_DIRECTIONS |
MAC_ID, WINDOWS_ID
Constructor and Description |
---|
WindowsPS4Controller(com.badlogic.gdx.controllers.Controller controller) |
WindowsPS4Controller(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, notifyL2Moved, notifyLeftStickXMoved, notifyLeftStickYMoved, notifyR2Moved, notifyRightStickXMoved, notifyRightStickYMoved, removeListener, removeListener, setLeftStickDeadZone, setRightStickDeadZone
public static final int BUTTON_TRIANGLE
public static final int BUTTON_SQUARE
public static final int BUTTON_CIRCLE
public static final int BUTTON_X
public static final int BUTTON_L1
public static final int BUTTON_L2
public static final int BUTTON_L3
public static final int BUTTON_R1
public static final int BUTTON_R2
public static final int BUTTON_R3
public static final int BUTTON_SHARE
public static final int BUTTON_OPTIONS
public static final int BUTTON_TOUCHPAD
public static final int BUTTON_PS
public static final int AXIS_LEFT_STICK_Y
public static final int AXIS_LEFT_STICK_X
public static final int AXIS_RIGHT_STICK_Y
public static final int AXIS_RIGHT_STICK_X
public static final int AXIS_L2
public static final int AXIS_R2
public static final int POV_DIRECTIONS
public WindowsPS4Controller(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)