简化场景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

@@ -50,7 +50,7 @@ function scene.mouseUp()
B.x,B.y=int(B.x/k+.5)*k,int(B.y/k+.5)*k
end
end
function scene.touchDown(_,x,y)
function scene.touchDown(x,y)
selected=onVK_org(x,y)or selected
end
function scene.touchUp()
@@ -60,7 +60,7 @@ function scene.touchUp()
B.x,B.y=int(B.x/k+.5)*k,int(B.y/k+.5)*k
end
end
function scene.touchMove(_,_,_,dx,dy)
function scene.touchMove(_,_,dx,dy)
if selected and not WIDGET.sel then
local B=VK_org[selected]
B.x,B.y=B.x+dx,B.y+dy