控件模块/场景代码更好地响应系统长按
This commit is contained in:
@@ -42,7 +42,8 @@ local function start()
|
||||
vx=rnd()>.5 and 6 or -6
|
||||
vy=rnd()*6-3
|
||||
end
|
||||
function scene.keyDown(key)
|
||||
function scene.keyDown(key,isRep)
|
||||
if isRep then return end
|
||||
if key=="space"then
|
||||
if state==0 then
|
||||
start()
|
||||
|
||||
Reference in New Issue
Block a user