Android back button does not work

后端 未结 5 1131
星月不相逢
星月不相逢 2021-02-06 14:56

I am using cocos2dx to make a small game and in the activity of my game i give the following functions to handle back button.

@Override
 public boolean onKeyDown         


        
5条回答
  •  孤城傲影
    2021-02-06 15:41

    Here's an update for Cocos2d-x version 3+

    This has been answered simply (and works) here

    as well as a slightly less complete youtube here

提交回复
热议问题