Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
EASY: KeyCode for Home Button? — Gideros Forum

EASY: KeyCode for Home Button?

edited December 2012 in General questions
I want to pause my game when player press Home button (game minimized) I've read reference manual at http://www.giderosmobile.com/documentation/reference_manual.html#KeyCode but I can't found keyCode for Home button (tried BACK and MENU worked fine)

Anyone can help?
Tagged:

Comments

  • hnimhnim Member
    Accepted Answer
    you can try with Event.APPLICATION_SUSPEND
    function applicationSuspend()
    	if gameIsPlaying then
    		pauseGame()
    	end
    end
    stage:addEventListener(Event.APPLICATION_SUSPEND, applicationSuspend)

    Likes: thanhquan1512

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.