i have completely ported a game for ANDROID using cocos2dx and C++.
now i am having a problem with the termination of the game when the user clicks the back button.
i know how to handle back click event from CCLayer.
Can anyone suggest me how to terminate the game from CCScene.
i tried using keyBackClicked(), but it only works for CCLayer and not for CCScene.
The “back” soft key should be linked to CCDirector->popScene(). When the last scene is popped, the director terminates and your app should fall out to termination.