macroquad icon indicating copy to clipboard operation
macroquad copied to clipboard

Android keyboard support

Open sonicrules1234 opened this issue 3 years ago • 6 comments

On android, there is currently no way to input anything that takes keyboard input, not even with a bluetooth keyboard. If that could be implemented, then people would be able to make android apps much easier.

sonicrules1234 avatar Nov 16 '21 15:11 sonicrules1234

Hello @not-fl3 ,

Would you have time to look at what kind of modifications this requires so that I or someone can try to make it possible ? :)

buxx avatar Jan 31 '22 20:01 buxx

or someone can try to make it possible ? :)

Someone absolutely can! :D I would not do it myself until I will have a good case for this myself, I would like to have a nice good test case to make sure it absolutely do works, so will not promise that I will do it anytime soon

not-fl3 avatar Feb 01 '22 03:02 not-fl3

Okay. I personally have a case, my game require a login/password home page screen. I would be happy to implement it and add a test case in macroquad example folder. But, I don't know how to start :s

buxx avatar Feb 01 '22 08:02 buxx

Okay. I personally have a case, my game require a login/password home page screen. I would be happy to implement it and add a test case in macroquad example folder. But, I don't know how to start :s

If you look in ndk-sys there are functions for bringing up the soft keyboard, and some events to go with it. You might have to add to miniquad before doing stuff with macroquad.

sonicrules1234 avatar Feb 01 '22 15:02 sonicrules1234

@sonicrules1234 I'm searching which ndk-sys function should be called. Is that ANativeActivity_showSoftInput ?

buxx avatar Feb 03 '22 15:02 buxx

@sonicrules1234 I'm searching which ndk-sys function should be called. Is that ANativeActivity_showSoftInput ?

That's right.

sonicrules1234 avatar Feb 03 '22 15:02 sonicrules1234

Is there any progress on this? I would also like to be able to open the virtual keyboard when e.g. inside a editbox or input_text.

macnelly avatar Dec 07 '22 11:12 macnelly

There are examples for virtual keyboard at quad-android-playground repository: https://github.com/not-fl3/quad-android-playground/blob/main/src/main.rs

macnelly avatar Dec 07 '22 12:12 macnelly

thanks @macnelly

yes, I believe this is fixed now

not-fl3 avatar Dec 07 '22 14:12 not-fl3