控件模块/场景代码更好地响应系统长按
This commit is contained in:
@@ -15,13 +15,10 @@ function scene.sceneInit()
|
||||
ex,ey=626,260
|
||||
BG.set('matrix')
|
||||
BGM.play('hang out')
|
||||
love.keyboard.setKeyRepeat(false)
|
||||
end
|
||||
function scene.sceneBack()
|
||||
love.keyboard.setKeyRepeat(true)
|
||||
end
|
||||
|
||||
function scene.keyDown(key)
|
||||
function scene.keyDown(key,isRep)
|
||||
if isRep then return end
|
||||
if key=="space"or key=="return"then
|
||||
if state==0 then
|
||||
state=1
|
||||
|
||||
Reference in New Issue
Block a user