Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Exit using back button — Gideros Forum

Exit using back button

antixantix Member
edited February 2017 in General questions
I am using the following code to make my game exit when the back button is pressed...
stage:addEventListener(Event.KEY_DOWN, function(event)
    if event.keyCode == KeyCode.BACK then
      application:exit()
    end
  end)
This seems to work but when you press the button that shows all running apps.. the game is sitting there in that list and has not exited correctly. If I click it in the list of running apps it then starts the app again.

Is this a bug and is it possibly resolved later than 2016.6 which I'm currently using?

Comments

Sign In or Register to comment.