v1.3.0: updated gdx-controllers, fixes iOS and Jamepad issues

This commit is contained in:
Evan Debenham
2022-06-13 23:39:44 -04:00
parent 9e4e7cfa2c
commit 1a74587360
3 changed files with 2 additions and 7 deletions

View File

@@ -54,8 +54,7 @@ public class ControllerHandler implements ControllerListener {
}
public static boolean controllersSupported() {
//disabled on iOS as a temporary workaround for dependency issues between RoboVM and gdx-controllers
if (DeviceCompat.isiOS() || (DeviceCompat.isAndroid() && Gdx.app.getVersion() < 16)) {
if (DeviceCompat.isAndroid() && Gdx.app.getVersion() < 16) {
return false;
} else {
return true;

View File

@@ -24,7 +24,7 @@ allprojects {
appAndroidTargetSDK = 31
gdxVersion = '1.11.0'
gdxControllersVersion = '2.2.1'
gdxControllersVersion = '2.2.2'
robovmVersion = '2.3.16'
}
version = appVersionName

View File

@@ -120,10 +120,6 @@ dependencies {
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"
//temporary workaround for gdx-controllers-2.2.1 using outdated jamepad version
implementation("com.badlogicgames.jamepad:jamepad:2.0.20.0") {
exclude group: 'com.badlogicgames.gdx', module: 'gdx-jnigen-loader'
}
//we use LWJGL tinyFD directly to display crash messages
implementation "org.lwjgl:lwjgl-tinyfd:3.3.1"