v2.3.1: updated libGDX to 1.12.1 and mobiVM to 2.3.20

This commit is contained in:
Evan Debenham
2024-01-22 13:42:30 -05:00
parent 5069d034c9
commit 4056c48545
9 changed files with 30 additions and 19 deletions

View File

@@ -130,7 +130,16 @@ public class InputHandler extends InputAdapter {
}
return true;
}
@Override
public boolean touchCancelled(int screenX, int screenY, int pointer, int button) {
//currently emulating functionality from libGDX 1.11.0, do we keep this?
//in particular this is probably a more graceful way to handle things like system swipes on iOS
//whereas previously they generated garbage inputs sometimes
//which were then fixed in v2.2.2
return touchUp(screenX, screenY, pointer, button);
}
@Override
public synchronized boolean touchDragged(int screenX, int screenY, int pointer) {
PointerEvent.addIfExisting(new PointerEvent(screenX, screenY, pointer, PointerEvent.Type.DOWN));

View File

@@ -40,6 +40,7 @@ public abstract class PlatformSupport {
public void vibrate( int millis ){
//regular GDX vibration by default
//TODO should this trigger controller vibration if available?
Gdx.input.vibrate( millis );
}