[Cocos2d-JS] 安卓机器的几个按钮

cc.eventManager.addListener({
            event:cc.EventListener.KEYBOARD,
            onKeyPressed:function(keycode,event){},//无效 jsb未实现
            onKeyReleased:function(keycode,event){
                if(keycode==8){//back button 8
                    
                }else if(keycode==0x1067){//menu 4199
                    cc.Director.getInstance().end();
                }
            }
        },this);

 

你可能感兴趣的:(cocos2d-js)