Hi! I hope you can help me with this little problem implementing the back button event.
I want to give the keyDown of the back button of android device an action, but every time i hit it, it just exits the application. I tried with
self:addEventListener(Event.KEY_DOWN, function(event) if (event.keyCode == Keycode.BACK) then
//change scene
end)
and it's not working.
It just exits the application when I hit back.
Do you have any idea of what this could be?
Thanks in advance!
Comments