How to enable the android back button key in cocos2d-x
Step 1. In your .h file which is inheriting CCLayer, write
Step 2. Define this function in your .cpp file
Step 3. In your init() or onEnter method, write
And you are done..
HAPPY CODING
And you are done..
HAPPY CODING