Languages

Menu
Sites
Language
Back button

My app got rejected for not using the back button.

I am using the latest cocos2dx 2.2 official release which Samsung have stated "was recently added as a supported platform"

However it doesn't include anyway to detect presses to the back button.

Or should I say it doesn't work.

I am doing the following:-

In my header I have  -   virtual void keyBackClicked();

In my scene GameMenu::init() I am using setKeypadEnabled(true);

Then I have 

void GameMenu::keyBackClicked()

{

    CCLog("BACK clicked!");

}

But it never gets called???

So how can it be a supported platform????

How can I get my app approved for the Tizen app challange????

Edited by: meme last on 25 Oct, 2013

Responses

3 Replies
hgw7

Have you implemented IFormBackEventListener interface ?

You can handle it back in CC layer by overriding keyBackClicked() as you have done. Please include the following and try:

void GameMenu::keyBackClicked()

{

    CCLog("BACK clicked!");

    CCDirector::sharedDirector()->end();

}

This reference may also help -> http://www.cocos2d-x.org/forums/6/topics/37449?r=37980