Fix SCENE:onInputMove{type="touch"} is not working

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-25 00:31:15 +07:00
parent 86f835a1ce
commit 7041cfd1f4

View File

@@ -162,7 +162,7 @@ function love.touchpressed(id,x,y)
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
SCENE:onInputPress{type = "touch", x = x, y = y, dx = 0, dy = 0, id = id}
end
function love.touchdragged(id,x,y,dx,dy)
function love.touchmoved(id,x,y,dx,dy)
local x,y=GLOBAL_TRANSFORM:inverseTransformPoint(x,y)
SCENE:onInputMove{type = "touch", x = x, y = y, dx = dx, dy = dy, id = id}
end