Virtual Keyboard: Help managing mobile device input

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AlvaroAV

I’m developing a game with Godot 3 and I have a TextEdit node where the users can write their usernames.

The screen is landscape mode and the TextEdit input is almost at the bottom of the screen, when a user clicks the input on a mobile device, the virtual keyboard appears so they are able to write but:

  • The keyboard appears over the input, so the user doesn’t know what he is typing

My questions are:

  • Do I need to manually move the input to the top of the screen while the virtual keyboard is present?
  • Is there a way to automatically manage this ?
  • Am I doing something wrong, or is there a better way to achieve this ?

Hi, I know this is a very old post. But I’m also having the same issue. Have you found an answer to this one?

jjcdesamito | 2020-07-22 21:51

I have to say that I ended up moving the input ‘manually’, mostly for mobile devices because the keyboard occupy like 70% of the screen. I just detect when the input is focused and move it to the top, and also detect when the input is no longer focused to move it back to the original place.

AlvaroAV | 2020-07-23 06:45

I see. I ended up doing the same thing. I just thought there is another way to do it.
Anyway thanks!

jjcdesamito | 2020-07-23 21:08