1
0
mirror of https://github.com/minetest/minetest.git synced 2025-09-18 03:15:20 +02:00

Enable relative mouse mode on Android (#15750)

fixes #15727
This commit is contained in:
sfan5
2025-02-04 12:19:09 +01:00
committed by GitHub
parent a73e71510a
commit 88b007907a

View File

@@ -901,8 +901,12 @@ bool Game::startup(bool *kill,
// In principle we could always enable relative mouse mode, but it causes weird
// bugs on some setups (e.g. #14932), so we enable it only when it's required.
// That is: on Wayland, because it does not support mouse repositioning
// That is: on Wayland or Android, because it does not support mouse repositioning
#ifdef __ANDROID__
m_enable_relative_mode = true;
#else
m_enable_relative_mode = device->isUsingWayland();
#endif
g_client_translations->clear();