Hey there, I was wondering if it is possible to use the Android SoftKeyboard within an OpenGL rendered Application (Game)?
I ask this, because I want to have an ingame gui with self rendered text input fields and ofc with support of the soft keyboard. Is this possible or do I have to render the keyboard all by myself ? (This would be quite a hassle...)
Any suggestions?
Thanks in advance!
Mfg Imp
The Android system shows an on-screen keyboard—known as a soft input method—when a text field in your UI receives focus.
You can force Android to hide the virtual keyboard using the InputMethodManager, calling hideSoftInputFromWindow, passing in the token of the window containing your edit field. This will force the keyboard to be hidden in all situations.
As far as I know there are no problems with using the softkeyboard with GLSurfaceView. Look to the InputMethodManager class for methods to show and hide the keyboard.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With