Skip to content

Commit

Permalink
修exterior触摸问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Sep 12, 2024
1 parent f08a469 commit 6094841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/game/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function GAME.cursorDown(x,y,tid,id)
x,y=GAME.camera.transform:inverseTransformPoint(SCR.xOy_m:inverseTransformPoint(SCR.xOy:transformPoint(x,y)))
p:mouseDown(x,y,tid)
elseif SETTINGS.system.touchControl then
VCTRL.press(x,y,id)
VCTRL.press(x,y,tid)
end
end

Expand All @@ -351,7 +351,7 @@ function GAME.cursorMove(x,y,dx,dy,tid,id)
3
)
elseif SETTINGS.system.touchControl then
VCTRL.move(x,y,id)
VCTRL.move(x,y,tid)
end
end

Expand All @@ -361,7 +361,7 @@ function GAME.cursorUp(x,y,tid,id)
x,y=GAME.camera.transform:inverseTransformPoint(SCR.xOy_m:inverseTransformPoint(SCR.xOy:transformPoint(x,y)))
p:mouseUp(x,y,tid)
elseif SETTINGS.system.touchControl then
VCTRL.release(id)
VCTRL.release(tid)
end
end

Expand Down

0 comments on commit 6094841

Please sign in to comment.