not all examples have been updated, it seems you’re describing the problem solved here:
to get the eventlisteners firing again you need to change self to self.node (the “this.node.on(cc.Node.EventType.” way of attaching eventhandlers is not affected by this change).
so you need to write:
cc.eventManager.addListener({
event: cc.EventListener.KEYBOARD,
onKeyPressed: function(keyCode, event) {
self._onKeyPressed(keyCode, event);
},
}, self.node);
instead of
cc.eventManager.addListener({
event: cc.EventListener.KEYBOARD,
onKeyPressed: function(keyCode, event) {
self._onKeyPressed(keyCode, event);
},
}, self);
cheers