v0.9.4: updated libGDX to 1.10.0, dropping support for Android 2.3/3

This commit is contained in:
Evan Debenham
2021-06-23 20:29:13 -04:00
parent cd8abf720c
commit 9b63eb5e09
12 changed files with 23 additions and 62 deletions

View File

@@ -7,7 +7,6 @@ dependencies {
//TODO migrate this to implementation from api
//in order to do this I have to remove 100% of libGDX API access from core
api "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
//noinspection GradleDependency , later JSON versions cause crashes on old versions of android

View File

@@ -109,8 +109,8 @@ public class InputHandler extends InputAdapter {
// ********************
@Override
public boolean scrolled(int amount) {
ScrollEvent.addScrollEvent( new ScrollEvent(pointerHoverPos, amount));
public boolean scrolled(float amountX, float amountY) {
ScrollEvent.addScrollEvent( new ScrollEvent(pointerHoverPos, amountY));
return true;
}
}

View File

@@ -29,9 +29,9 @@ import java.util.ArrayList;
public class ScrollEvent {
public PointF pos;
public int amount;
public float amount;
public ScrollEvent(PointF mousePos, int amount){
public ScrollEvent(PointF mousePos, float amount){
this.amount = amount;
this.pos = mousePos;
}

View File

@@ -64,7 +64,7 @@ public class DeviceCompat {
}
public static void openURI( String URI ){
Game.platform.openURI(URI);
Gdx.net.openURI(URI);
}
public static void log( String tag, String message ){

View File

@@ -30,10 +30,6 @@ public abstract class PlatformSupport {
public abstract void updateSystemUI();
public abstract boolean connectedToUnmeteredNetwork();
//FIXME this is a temporary method to workaround a bug in libGDX with Android 11+
//it can be removed once Shattered is updated to libGDX 1.9.14+
public abstract boolean openURI( String URI );
//FIXME this is currently used because no platform-agnostic text input has been implemented.
//should look into doing that using either plain openGL or libgdx's libraries