框架keyDown事件机制微调,重构框架主循环和控件相关代码
可以用键盘和手柄控制光标(手柄不完善) 整理代码和部分语言文件细节
This commit is contained in:
@@ -54,11 +54,11 @@ function scene.mouseDown(x,y)
|
||||
end
|
||||
end
|
||||
scene.touchDown=scene.mouseDown
|
||||
function scene.keyDown(key)
|
||||
if key=='escape'then
|
||||
SCN.back()
|
||||
elseif love.keyboard.isDown('m')and love.keyboard.isDown('d')then
|
||||
function scene.keyDown()
|
||||
if love.keyboard.isDown('m')and love.keyboard.isDown('d')then
|
||||
loadGame('sprintMD',true)
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user