godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.92k stars 20.17k forks source link

Android keyboard doesn't show up in emulator #87052

Open blurrred opened 8 months ago

blurrred commented 8 months ago

Tested versions

Reproducible in 4.2.1 Not reproducible in 4.1.1

System information

Godot v4.2.1.stable - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Thu Dec 21 16:21:45 UTC 2023 - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 Laptop GPU () - AMD Ryzen 5 5600H with Radeon Graphics (12 Threads)

Issue description

Clicking on a text input node such as LineEdit should raise the virtual keyboard in Android. On emulators, it does not. It works on my physical device.

Steps to reproduce

Click on text input node such as LineEdit in an Android emulator. Virtual keyboard fails to show up.

Minimal reproduction project (MRP)

Keyboard test 4.1.1.tar.gz Keyboard test 4.2.1.tar.gz

blurrred commented 8 months ago

Upon further testing, I noticed that my touch-specific inputs weren't responding in the emulator either. I think the issue is that clicks are registered as mouse clicks instead of touch events in an emulator. I'm not sure whether this should be considered intended or unintended behavior, but it would be preferable if developers had the option to set it as touch events like in prior Godot versions.

skrillfalconblast commented 5 months ago

I've tested this on the emulator (Pixel 8 Pro) shipped with Android Studio, I can confirm emulate touch from mouse seems to have no effect.