From 88b007907a8f1a645daa850597083b796e89510e Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 4 Feb 2025 12:19:09 +0100 Subject: [PATCH] Enable relative mouse mode on Android (#15750) fixes #15727 --- src/client/game.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/game.cpp b/src/client/game.cpp index 00808803f6..93771a5a23 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -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();