From 97f9e7dbad2c521625175b34225132ce1e8c9262 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sun, 9 Jul 2023 17:07:14 +0530 Subject: [PATCH] camera input deadzone --- src/DifBuilder.hx | 2 ++ src/touch/CameraInput.hx | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/DifBuilder.hx b/src/DifBuilder.hx index c3f355fd..29c98424 100644 --- a/src/DifBuilder.hx +++ b/src/DifBuilder.hx @@ -371,6 +371,7 @@ class DifBuilder { return tex.substring(slashpos, dotpos); } + fs.ManifestFileSystem.ManifestEntry.doQuickLoad = true; ResourceLoader.load(path).entry.load(() -> { var dif:Dif = null; var cache:DifCache = null; @@ -1024,6 +1025,7 @@ class DifBuilder { for (f in loadtexs) { worker.loadFile(f); } + fs.ManifestFileSystem.ManifestEntry.doQuickLoad = false; worker.run(); }); } diff --git a/src/touch/CameraInput.hx b/src/touch/CameraInput.hx index dc5ad490..6c4199e6 100644 --- a/src/touch/CameraInput.hx +++ b/src/touch/CameraInput.hx @@ -84,7 +84,10 @@ class CameraInput { var inpY = delta.y / scaleFactor; if (jumpcam) { - trace('Input: ${inpX} ${inpY}'); + if (Math.abs(inpX) < 1.3) + inpX = 0; + if (Math.abs(inpY) < 1.3) + inpY = 0; } MarbleGame.instance.world.marble.camera.orbit(inpX, inpY, true);