mirror of https://github.com/ppy/osu
Merge pull request #28228 from Susko3/show-mouse-joystick-settings-mobile
Show mouse and joystick settings on mobile
This commit is contained in:
commit
e6baa06f2e
|
@ -578,17 +578,17 @@ public virtual SettingsSubsection CreateSettingsSubsectionFor(InputHandler handl
|
|||
{
|
||||
case ITabletHandler th:
|
||||
return new TabletSettings(th);
|
||||
|
||||
case MouseHandler mh:
|
||||
return new MouseSettings(mh);
|
||||
|
||||
case JoystickHandler jh:
|
||||
return new JoystickSettings(jh);
|
||||
}
|
||||
}
|
||||
|
||||
switch (handler)
|
||||
{
|
||||
case MouseHandler mh:
|
||||
return new MouseSettings(mh);
|
||||
|
||||
case JoystickHandler jh:
|
||||
return new JoystickSettings(jh);
|
||||
|
||||
case TouchHandler th:
|
||||
return new TouchSettings(th);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue