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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();