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:
|
case ITabletHandler th:
|
||||||
return new TabletSettings(th);
|
return new TabletSettings(th);
|
||||||
|
|
||||||
case MouseHandler mh:
|
|
||||||
return new MouseSettings(mh);
|
|
||||||
|
|
||||||
case JoystickHandler jh:
|
|
||||||
return new JoystickSettings(jh);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (handler)
|
switch (handler)
|
||||||
{
|
{
|
||||||
|
case MouseHandler mh:
|
||||||
|
return new MouseSettings(mh);
|
||||||
|
|
||||||
|
case JoystickHandler jh:
|
||||||
|
return new JoystickSettings(jh);
|
||||||
|
|
||||||
case TouchHandler th:
|
case TouchHandler th:
|
||||||
return new TouchSettings(th);
|
return new TouchSettings(th);
|
||||||
|
|
||||||
|
|
|
@ -105,12 +105,17 @@ protected override void LoadComplete()
|
||||||
|
|
||||||
highPrecisionMouse.Current.BindValueChanged(highPrecision =>
|
highPrecisionMouse.Current.BindValueChanged(highPrecision =>
|
||||||
{
|
{
|
||||||
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
|
switch (RuntimeInfo.OS)
|
||||||
{
|
{
|
||||||
if (highPrecision.NewValue)
|
case RuntimeInfo.Platform.Linux:
|
||||||
highPrecisionMouse.SetNoticeText(MouseSettingsStrings.HighPrecisionPlatformWarning, true);
|
case RuntimeInfo.Platform.macOS:
|
||||||
else
|
case RuntimeInfo.Platform.iOS:
|
||||||
highPrecisionMouse.ClearNoticeText();
|
if (highPrecision.NewValue)
|
||||||
|
highPrecisionMouse.SetNoticeText(MouseSettingsStrings.HighPrecisionPlatformWarning, true);
|
||||||
|
else
|
||||||
|
highPrecisionMouse.ClearNoticeText();
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue