mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Fix bug again
This commit is contained in:
2
main.lua
2
main.lua
@@ -164,7 +164,7 @@ function love.touchpressed(id,x,y)
|
||||
end
|
||||
function love.touchdragged(id,x,y,dx,dy)
|
||||
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
|
||||
SCENE:onInputDrag{type = "touch", x = x, y = y, dx = dx, dy = dy, id = id}
|
||||
SCENE:onInputMove{type = "touch", x = x, y = y, dx = dx, dy = dy, id = id}
|
||||
end
|
||||
function love.touchreleased(id,x,y)
|
||||
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
|
||||
|
||||
Reference in New Issue
Block a user