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);

 

posted on 2014-06-03 14:47  凌度  阅读(560)  评论(0编辑  收藏  举报