删除部分场景遗留的鼠标右键返回

This commit is contained in:
MrZ626
2021-04-29 18:05:25 +08:00
parent 5607930540
commit 89b87be143
3 changed files with 1 additions and 6 deletions

View File

@@ -37,8 +37,6 @@ end
function scene.mouseDown(k) function scene.mouseDown(k)
if k==1 then if k==1 then
scene.keyDown("space") scene.keyDown("space")
elseif k==2 then
SCN.back()
end end
end end
function scene.touchDown() function scene.touchDown()

View File

@@ -79,8 +79,6 @@ end
function scene.mouseDown(_,_,k) function scene.mouseDown(_,_,k)
if k==1 then if k==1 then
scene.keyDown("space") scene.keyDown("space")
elseif k==2 then
scene.keyDown("escape")
end end
end end
function scene.touchDown() function scene.touchDown()

View File

@@ -34,8 +34,7 @@ local function onVK_org(x,y)
return nearest return nearest
end end
function scene.mouseDown(x,y,k) function scene.mouseDown(x,y,k)
if k==2 then SCN.back()end if k==1 then scene.touchDown(x,y)end
scene.touchDown(x,y)
end end
function scene.mouseUp() function scene.mouseUp()
scene.touchUp() scene.touchUp()