-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get user soft keyboard input on Android platform #3275
Comments
If there is an iOS platform, the related solutions can help me. I think the solutions for the two platforms should be universal. |
Hey @YuDang1024, |
On Dear ImGui side, you should read On Android side, you should definitively open the Android on-screen keyboard when |
I used the soft keyboard on Android according to your suggestion before, but because the soft keyboard is used on the Android platform, I need to use native components as a carrier, and after awakening the soft keyboard, I did not get user input in the input box of Dear ImGui. |
Because I don’t know much about SDL, after receiving your suggestion, I didn’t have the first time to integrate SDL in the project, but I drew 26 buttons to act as my keyboard. , SDL may be a better solution |
This is exactly what SDL does for you. |
I am using imgui on Android platform now,
But I cannot wake up the user's local input method in the text input box。
So far I thought of a solution, although it is not ideal, but the guess is available。
I use Andorid's native UI component: TextInput, but I set it to transparent or very small, so small that the user cannot see.
Then wake up the input method through this TextInput component, and then obtain the user's input through the interface provided by this component.
I haven't verified this method because I think this method is not a good solution, but I can't think of another solution.
Do you have any better suggestions or solutions?
The text was updated successfully, but these errors were encountered: