Skip to content

Commit

Permalink
Fix touch input camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonnyg committed Mar 18, 2024
1 parent 13d29e1 commit 52e409d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main/main.collection
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion vantage/vantage_core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 52e409d

Please sign in to comment.