cocos2d-x 3.2 , wp里怎么不能响应返回键。。。

bool HelloWorld::init()
{

.。。。
。。。
auto listenerkeyPad = EventListenerKeyboard::create();
listenerkeyPad->onKeyReleased = CC_CALLBACK_2(HelloWorld::onKeyReleased, this);
_eventDispatcher->addEventListenerWithSceneGraphPriority(listenerkeyPad, this);

return true;

}

void HelloWorld::onKeyReleased(EventKeyboard::KeyCode keycode, Event* event)
{

//这个函数进不来

MessageBox(“You pressed the close button. Windows Store Apps do not implement a close button.”, “Alert”);

}

这个可以在c#层相应回退建

你用的这种方式是监听不到返回键的。
你要用wp8监听返回键的方法。

同问,如何处理游戏主菜单界面和其他界面的返回事件?

http://www.cocoachina.com/bbs/read.php?tid=272307&page=1#1187163,问题已解决

http://blog.csdn.net/llb19911212/article/details/41748571这个博客可以看看