this thing

This commit is contained in:
RandomityGuy 2023-11-19 13:39:22 +05:30
parent 4b56bc2312
commit 7d912c88a7

View file

@ -91,8 +91,10 @@ class CameraInput {
}
MarbleGame.instance.world.marble.camera.orbit(applyNonlinearScale(inpX), applyNonlinearScale(inpY), true);
prevMouse.x = e.relX;
prevMouse.y = e.relY;
if (inpX != 0)
prevMouse.x = e.relX;
if (inpY != 0)
prevMouse.y = e.relY;
}
}