简化场景touch事件参数

This commit is contained in:
MrZ626
2021-02-10 20:08:10 +08:00
parent d2a524b26e
commit 1b5401bf7f
16 changed files with 31 additions and 31 deletions

View File

@@ -61,11 +61,11 @@ function scene.keyDown(key)
SCN.back()
end
end
function scene.touchDown(id,x,y)
scene.touchMove(id,x,y)
function scene.touchDown(x,y)
scene.touchMove(x,y)
if state==0 then start()end
end
function scene.touchMove(_,x,y)(x<640 and p1 or p2).y0=y end
function scene.touchMove(x,y)(x<640 and p1 or p2).y0=y end
function scene.mouseMove(x,y)(x<640 and p1 or p2).y0=y end
--Rect Area X:150~1130 Y:20~700