@esygame 写道:
目前试过的方法
Activity里监听
onKeyDown, onKeyUp都不行,jsb里
onEnable: function () { this.keyListener = { event: cc.EventListener.KEYBOARD, onKeyPressed: function (keyCode, event) { cc.log('keyDown: ' + keyCode); }, onKeyReleased: function (keyCode, event) { cc.log('keyUp: ' + keyCode); } } cc.eventManager.addListener(this.keyListener, this.node); }, onDisable: function () { },
也不行
帖子: 3
参与者: 1