v1.3.0: updated gdx-controllers, fixes iOS and Jamepad issues
This commit is contained in:
@@ -54,8 +54,7 @@ public class ControllerHandler implements ControllerListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean controllersSupported() {
|
public static boolean controllersSupported() {
|
||||||
//disabled on iOS as a temporary workaround for dependency issues between RoboVM and gdx-controllers
|
if (DeviceCompat.isAndroid() && Gdx.app.getVersion() < 16) {
|
||||||
if (DeviceCompat.isiOS() || (DeviceCompat.isAndroid() && Gdx.app.getVersion() < 16)) {
|
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ allprojects {
|
|||||||
appAndroidTargetSDK = 31
|
appAndroidTargetSDK = 31
|
||||||
|
|
||||||
gdxVersion = '1.11.0'
|
gdxVersion = '1.11.0'
|
||||||
gdxControllersVersion = '2.2.1'
|
gdxControllersVersion = '2.2.2'
|
||||||
robovmVersion = '2.3.16'
|
robovmVersion = '2.3.16'
|
||||||
}
|
}
|
||||||
version = appVersionName
|
version = appVersionName
|
||||||
|
|||||||
@@ -120,10 +120,6 @@ dependencies {
|
|||||||
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||||
implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
|
implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
|
||||||
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"
|
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
|
//we use LWJGL tinyFD directly to display crash messages
|
||||||
implementation "org.lwjgl:lwjgl-tinyfd:3.3.1"
|
implementation "org.lwjgl:lwjgl-tinyfd:3.3.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user