Hi. I have experience with android development, and can answer from
android side.
- is it possible to control the mobile onscreen keyboard (show, hide
and get key events) without an HTML input element?
Unfortunately no. It can be made only in custom webview, if you create
android app with webview and provide javascript api for showing/hiding
keyboard.
- if not, is it possible to have a hidden input element instead which
serves as a proxy to bring up the keyboard?
Theoretically yes, but I don't believe in this solution. It's because
Android OS does not provide full control over virtual keyboard, you
can only send intention to open/hide keyboard but os decide should
keyboard stay on screen or not.
I have a game on android, that uses webview with js api to
showing/hiding keyboard. This works in most cases, but on some "buggy"
phones keyboard can dissapear in wrong time and game start be
unplayble. So as for me best solution is drop system keyboard, and use
pure js onscreen keyboard as part of game. Like this
https://mottie.github.io/Keyboard/, or any other. Another advantage
that this solutin will work on android and ios.
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
emscripten-disc...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.