godotengine / godot

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

Disabling "emulate mouse from touch" in android editor makes it unusable upon restart #96784

Open ohboh opened 1 week ago

ohboh commented 1 week ago

Tested versions

Godot 4.3.0 stable [Android]

System information

Android 13 (Xiaomi Poco F3) - Godot 4.3 stable

Issue description

After disabling "emulate mouse from touch" in project settings and restarting the editor, it becomes impossible to use the editor with touch.

Steps to reproduce

  1. Disable "emulate mouse from touch" in project settings
  2. Exit Godot editor and remove from recents
  3. Re-open the editor and open your project

Minimal reproduction project (MRP)

N/A

akien-mga commented 1 week ago

CC @m4gr3d

It's logical that disabling mouse emulation would prevent using it - the solution here is to connect a mouse and re-enable it, if using mouse emulation was needed.

That being said it's a bug that the project setting impacts the editor, so this needs to be changed so that the editor has its own control over the use of mouse emulation from touch.

And to get out of this kind of situation, there should probably be an easy way to reset editor settings if users disable it by mistake (or we prevent disabling it altogether).

ohboh commented 1 week ago

Also, it's odd that prior to restarting the editor, the setting only applies to the project and does not impact the editor itself (which is how it should be).