v3.0.0: added proper support for touches cancelled by system gestures

This commit is contained in:
Evan Debenham
2025-01-22 16:49:55 -05:00
parent 38d2731fde
commit 0a602a9fb1
5 changed files with 30 additions and 31 deletions

View File

@@ -45,7 +45,6 @@ import org.robovm.apple.foundation.NSString;
import org.robovm.apple.glkit.GLKViewDrawableColorFormat;
import org.robovm.apple.glkit.GLKViewDrawableDepthFormat;
import org.robovm.apple.uikit.UIApplication;
import org.robovm.apple.uikit.UIRectEdge;
import java.io.File;
@@ -102,12 +101,6 @@ public class IOSLauncher extends IOSApplication.Delegate {
config.hideHomeIndicator = SPDSettings.fullscreen();
config.overrideRingerSwitch = SPDSettings.ignoreSilentMode();
//game has to ignore input from system gestures itself, otherwise there is lag on
//every button press on the corner of the screen. Currently this is accomplished via
//clearing all pointer events on the first frame after the game is resumed.
//TODO this may not be needed anymore with libgdx 1.12.1
config.screenEdgesDeferringSystemGestures = UIRectEdge.All;
CGRect statusBarFrame = UIApplication.getSharedApplication().getStatusBarFrame();
double statusBarHeight = Math.min(statusBarFrame.getWidth(), statusBarFrame.getHeight());