protected class ControllerMappings.MappedInputs
extends java.lang.Object
ControllerMappings.recordMapping(Controller, int)| Modifier and Type | Field and Description |
|---|---|
boolean |
isRecorded |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCompleted() |
ConfiguredInput |
getConfiguredFromAxis(int axisIndex) |
ConfiguredInput |
getConfiguredFromButton(int buttonIndex) |
ConfiguredInput |
getConfiguredFromPov(int povIndex,
boolean vertical) |
ConfiguredInput |
getConfiguredFromReverseButton(int buttonIndex) |
java.lang.String |
getControllerName() |
ControllerMappings.MappedInput |
getMappedInput(int configuredId)
returns mapped input for a configuration id, if present.
|
protected boolean |
isButtonInMapping(int buttonIndex)
returns if a certain button is already in mapping
|
boolean |
putMapping(ControllerMappings.MappedInput mapping)
add a new mapping
|
com.badlogic.gdx.utils.JsonValue |
toJson()
Save mapping for this controller instance
|
public boolean checkCompleted()
public java.lang.String getControllerName()
public boolean putMapping(ControllerMappings.MappedInput mapping)
mapping - public com.badlogic.gdx.utils.JsonValue toJson()
protected boolean isButtonInMapping(int buttonIndex)
buttonIndex - public ConfiguredInput getConfiguredFromButton(int buttonIndex)
public ConfiguredInput getConfiguredFromReverseButton(int buttonIndex)
public ControllerMappings.MappedInput getMappedInput(int configuredId)
configuredId - configuration idpublic ConfiguredInput getConfiguredFromAxis(int axisIndex)
public ConfiguredInput getConfiguredFromPov(int povIndex, boolean vertical)