public class ControllerMapping
extends java.lang.Object
Controller
s based on the current
Os
Constructor and Description |
---|
ControllerMapping() |
Modifier and Type | Method and Description |
---|---|
static ControllerType |
getControllerType(com.badlogic.gdx.controllers.Controller controller) |
static PS4Controller |
ps4(com.badlogic.gdx.controllers.Controller controller) |
static PS4Controller |
ps4(com.badlogic.gdx.controllers.Controller controller,
DeadZone leftStickDeadZone,
DeadZone rightStickDeadZone) |
static Xbox360Controller |
xbox360(com.badlogic.gdx.controllers.Controller controller) |
static Xbox360Controller |
xbox360(com.badlogic.gdx.controllers.Controller controller,
DeadZone leftStickDeadZone,
DeadZone rightStickDeadZone) |
static XboxOneController |
xboxOne(com.badlogic.gdx.controllers.Controller controller) |
static XboxOneController |
xboxOne(com.badlogic.gdx.controllers.Controller controller,
DeadZone leftStickDeadZone,
DeadZone rightStickDeadZone) |
public static PS4Controller ps4(com.badlogic.gdx.controllers.Controller controller) throws ControllerPlatformException
ControllerPlatformException
public static PS4Controller ps4(com.badlogic.gdx.controllers.Controller controller, DeadZone leftStickDeadZone, DeadZone rightStickDeadZone) throws ControllerPlatformException
ControllerPlatformException
public static Xbox360Controller xbox360(com.badlogic.gdx.controllers.Controller controller) throws ControllerPlatformException
ControllerPlatformException
public static Xbox360Controller xbox360(com.badlogic.gdx.controllers.Controller controller, DeadZone leftStickDeadZone, DeadZone rightStickDeadZone) throws ControllerPlatformException
ControllerPlatformException
public static XboxOneController xboxOne(com.badlogic.gdx.controllers.Controller controller) throws ControllerPlatformException
ControllerPlatformException
public static XboxOneController xboxOne(com.badlogic.gdx.controllers.Controller controller, DeadZone leftStickDeadZone, DeadZone rightStickDeadZone) throws ControllerPlatformException
ControllerPlatformException
public static ControllerType getControllerType(com.badlogic.gdx.controllers.Controller controller)