PlayN - Virtual keyboard on iOS and Android
Asked Answered
K

1

6

Is there a way to programmatically trigger the virtual keyboard on iOS and Android in PlayN? Something like Gdx.input.setOnscreenKeyboardVisible(true); in LibGDX.

The best I could find is the Keyboard interface, but from what I can tell, this can only get a whole line from the user, but I need per character (keypress) feedback.

Kaliningrad answered 17/6, 2013 at 20:44 Comment(0)
M
1

As for Android, I think you should look at this answer. It does not give complete answer to it's question, but really fits yours.

To make long story short, you should have an EditText or some other control, able to receive keyboard input, request focus on it and in onFocushandler call setSoftInputMethod.

Mythos answered 23/6, 2013 at 16:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.