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:
Mmm i don’t think this will do what i am asking.
I am trying to send the back key event from android to my game in javascript.
So, as for example, if you press the back key during gameplay an ingame menu will open.
That should be already handled by cocos engine by actually did not work for me since 3.1.x
It did work on 3.0.x (even if there were this error )
Sorry, I misunderstood you before, this issue is already being dealt with.
If it’s urgent, you can modify this file.
File path:\3.3.2\resources\resources\3d\engine\pal\input\native\keyboard.ts