Android back key not working? v3.2.x and 3.3.1 – #6 by Koei – Cocos Creator


I cannot let it work in any ways.
I did also try to put some logs on the android class, c++ class and ts files.
The flow goes straight and nicely since this._eventTarget.emit(eventType, inputEvent); in keyboard.ts but i never received the event on my ts files.
I use this code:

systemEvent.on(SystemEvent.EventType.KEY_UP,this.keyUpTest,this);

---
keyUpTest(event:EventKeyboard )
{
}

But it does not work.



Source link

More To Explore

Share on facebook
Share on twitter
Share on linkedin
Share on email