v0.9.4: updated libGDX to 1.10.0, dropping support for Android 2.3/3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 ){
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user