Skip to content

Commit

Permalink
Don't show warning on android
Browse files Browse the repository at this point in the history
Unsure about iOS.
  • Loading branch information
Susko3 committed May 19, 2024
1 parent e4858a9 commit 04acc58
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions osu.Game/Overlays/Settings/Sections/Input/MouseSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,17 @@ protected override void LoadComplete()

highPrecisionMouse.Current.BindValueChanged(highPrecision =>
{
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
switch (RuntimeInfo.OS)
{
if (highPrecision.NewValue)
highPrecisionMouse.SetNoticeText(MouseSettingsStrings.HighPrecisionPlatformWarning, true);
else
highPrecisionMouse.ClearNoticeText();
case RuntimeInfo.Platform.Linux:
case RuntimeInfo.Platform.macOS:
case RuntimeInfo.Platform.iOS:
if (highPrecision.NewValue)
highPrecisionMouse.SetNoticeText(MouseSettingsStrings.HighPrecisionPlatformWarning, true);
else
highPrecisionMouse.ClearNoticeText();

break;
}
}, true);
}
Expand Down

0 comments on commit 04acc58

Please sign in to comment.