From 52e409d6206e1d11897ae6a1d7c55569dda004ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jhonny=20Go=CC=88ransson?= Date: Mon, 18 Mar 2024 11:54:50 -0700 Subject: [PATCH] Fix touch input camera --- main/main.collection | 4 ++-- vantage/vantage_core.lua | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/main/main.collection b/main/main.collection index c7b2582..cf11370 100644 --- a/main/main.collection +++ b/main/main.collection @@ -106,12 +106,12 @@ embedded_instances { " }\n" " properties {\n" " id: \"orbital_camera\"\n" - " value: \"true\"\n" + " value: \"false\"\n" " type: PROPERTY_TYPE_BOOLEAN\n" " }\n" " properties {\n" " id: \"movement_speed\"\n" - " value: \"0.1\"\n" + " value: \"5.0\"\n" " type: PROPERTY_TYPE_NUMBER\n" " }\n" " property_decls {\n" diff --git a/vantage/vantage_core.lua b/vantage/vantage_core.lua index 8d8a5ed..942dfb1 100644 --- a/vantage/vantage_core.lua +++ b/vantage/vantage_core.lua @@ -87,7 +87,9 @@ M.wasd = { elseif action_id == hash(M.VANTAGE_E) then move_up(self) elseif action_id == hash(M.VANTAGE_MOUSE_1) then - rotate(self, action.dx, action.dy) + if not action.pressed then + rotate(self, action.dx, action.dy) + end end end }