Hello there.
I am running my HTML5 game on a pretty strange Android-based TV-box device. This device has a remote control with arrows and OK button. So, using arrows I can normally move my focus from button to button in UI. But OK doesn't work at all. It does not trigger ui_accept
event. It has Unknown scancode in fact.
Fortunately, I can catch this OK button in JavaScript (in browser this button normally recognizes as Enter). So, I want to solve it using JavaScript interoperability: check from Godot if OK button was pressed and then simulate exactly ui_accept
event.
How can I do this? I use C#.
Input.ActionPress("ui_accept")
doesn't work. And ActionRelease
too, as well as its combination.