gamepad button label; gamepad calibrate on startup

This commit is contained in:
minjaesong
2019-02-21 00:12:12 +09:00
parent 83e1239434
commit d38fb0c15d
5 changed files with 90 additions and 23 deletions

View File

@@ -352,6 +352,16 @@ public class AppLoader implements ApplicationListener {
if (gamepad != null) {
environment = RunningEnvironment.CONSOLE;
// calibrate the sticks
/*float[] axesZeroPoints = new float[]{
gamepad.getAxis(0),
gamepad.getAxis(1),
gamepad.getAxis(2),
gamepad.getAxis(3)
};
setConfig("gamepadaxiszeropoints", axesZeroPoints);*/
}
else {
environment = RunningEnvironment.PC;
@@ -840,7 +850,7 @@ public class AppLoader implements ApplicationListener {
}
public static void setConfig(String key, Object value) {
gameConfig.set(key, value);
gameConfig.set(key.toLowerCase(), value);
}