Skip to content

Commit

Permalink
Enable relative mouse mode on Android
Browse files Browse the repository at this point in the history
fixes #15727
  • Loading branch information
sfan5 committed Feb 3, 2025
1 parent b2a6c3b commit 63b8614
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 63b8614

Please sign in to comment.