mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
a73e71510a
commit
88b007907a
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue