From 63b8614dd13b97919ac39b94928bbccc3cb2f9ea Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 3 Feb 2025 11:58:24 +0100 Subject: [PATCH] Enable relative mouse mode on Android 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 00808803f6dd1..93771a5a23a1d 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();