hello, does anyone know how to deploy a back event for my storyboard based application?
i want to use the hardware back button for this…
i tried this… but nothing happened
[code]
– Key listener
local function onKeyEvent( event )
local phase = event.phase
local keyName = event.keyName
if (keyName == “back”) then
storyboard.gotoScene( “menu” ,“slideRight”, 400 );
return true
end
– we handled the event, so return true.
– for default behavior, return false.
end
– Add the key callback
Runtime:addEventListener( “key”, onKeyEvent ); [import]uid: 185094 topic_id: 32320 reply_id: 332320[/import]