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

@@ -52,7 +52,7 @@ function scene.sceneInit()
heartBeatTimer=0
end
function scene.touchDown(_,x,y)
function scene.touchDown(x,y)
if noTouch then return end
local t=onVirtualkey(x,y)
@@ -61,7 +61,7 @@ function scene.touchDown(_,x,y)
pressVirtualkey(t,x,y)
end
end
function scene.touchUp(_,x,y)
function scene.touchUp(x,y)
if noTouch then return end
local t=onVirtualkey(x,y)