v1.2.0: implemented basic controller support
This commit is contained in:
@@ -69,6 +69,7 @@ dependencies {
|
||||
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
|
||||
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
|
||||
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"
|
||||
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-android:$gdxControllersVersion"
|
||||
}
|
||||
|
||||
// called every time gradle gets executed, takes the native dependencies of
|
||||
|
||||
3
android/proguard-rules.pro
vendored
3
android/proguard-rules.pro
vendored
@@ -22,6 +22,9 @@
|
||||
-keepnames class com.badlogic.gdx.graphics.Color { *; }
|
||||
-keepnames class com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle { *; }
|
||||
|
||||
# needed for libGDX controllers
|
||||
-keep class com.badlogic.gdx.controllers.android.AndroidControllers { *; }
|
||||
|
||||
-keepclassmembers class com.badlogic.gdx.backends.android.AndroidInput* {
|
||||
<init>(com.badlogic.gdx.Application, android.content.Context, java.lang.Object, com.badlogic.gdx.backends.android.AndroidApplicationConfiguration);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.shatteredpixel.shatteredpixeldungeon.android"
|
||||
android:installLocation="auto"
|
||||
android:targetSandboxVersion="2"
|
||||
@@ -12,6 +13,9 @@
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
||||
<!-- We perform a runtime check to ensure controllers are disabled on API 14 & 15 -->
|
||||
<uses-sdk tools:overrideLibrary="com.badlogicgames.gdx.controllers" />
|
||||
|
||||
<!-- Note that the game doesn't truly support small screen resolutions,
|
||||
it instead forces downscaling to work on these displays.-->
|
||||
<supports-screens
|
||||
|
||||
Reference in New Issue
Block a user