mirror of https://github.com/axmolengine/axmol.git
Fixes lua-tests/keypad test case. (#16954)
* Fixes lua-tests/keypad test case. * Updates string
This commit is contained in:
parent
e2100ce88c
commit
babced8b7c
|
@ -16,11 +16,7 @@ local function KeypadMainLayer()
|
|||
|
||||
local function onKeyReleased(keyCode, event)
|
||||
local label = event:getCurrentTarget()
|
||||
if keyCode == cc.KeyCode.KEY_BACK then
|
||||
label:setString("BACK clicked!")
|
||||
elseif keyCode == cc.KeyCode.KEY_MENU then
|
||||
label:setString("MENU clicked!")
|
||||
end
|
||||
label:setString("key: " .. keyCode .. " was clicked")
|
||||
end
|
||||
|
||||
local listener = cc.EventListenerKeyboard:create()
|
||||
|
|
Loading…
Reference in New Issue