CC 2.0.2 Android bug

Hi all,

I’ve already submitted the following bug, but it still exists in 2.0.2, so I do it again.

I try to handle the hardware Back key on Android and it seems that the following event is never called:

    cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, function (event) {
        if ((event.keyCode == cc.macro.KEY.back) || (event.keyCode == cc.macro.KEY.backspace)) {
            // Your code here...
        }
    }, this);

If I use the KEY_DOWN constant, it works fine.

@pandamicro, would you be so kind as to investigate it?

Thanks in advance,
Zsolt

Thanks. I’m passing this to the team as well.

1 Like

thanks for this feedback, it’s bug caused by my thoughtless. but it have been warm-hearted developer fixed, you can refer this PR to custom cocos2d-x-lite.

1 Like