if device.platform == “android” then
function onButtonClicked()
app.exit()
end
touchLayer = display.newLayer()
touchLayer:addNodeEventListener(cc.KEYPAD_EVENT, function(event)
dump(event)
if event.key == “back” then
xxxxx
end
end)
touchLayer:setKeypadEnabled(true)
scene:addChild(touchLayer)
end
在有触摸事件的场景,无法生效
请教下,如何设置优先级?