音效室场景改名launchpad

zx可以代替鼠标
This commit is contained in:
MrZ626
2021-09-27 00:41:32 +08:00
parent f2ffdc9e58
commit 95cff8b986
9 changed files with 11 additions and 9 deletions

View File

@@ -121,7 +121,9 @@ scene.mouseDown=scene.touchDown
function scene.keyDown(key,isRep)
if isRep then return end
if #key==1 then
if key=="z"or key=="x"then
love.mousepressed(love.mouse.getPosition())
elseif #key==1 then
if("12345678"):find(key,nil,true)then
press(0,tonumber(key))
else

View File

@@ -57,7 +57,7 @@ function scene.keyDown(key,isRep)
BGM.stop()
end
elseif key=="tab"then
SCN.swapTo('sound','none')
SCN.swapTo('launchpad','none')
elseif key=="escape"then
SCN.back()
end