mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 17:27:48 +08:00
Remove mobile specific changes
Will be added back in a separate PR
This commit is contained in:
parent
7385c3c97b
commit
fcd73e62d2
@ -98,9 +98,6 @@ namespace osu.Android
|
|||||||
case AndroidJoystickHandler jh:
|
case AndroidJoystickHandler jh:
|
||||||
return new AndroidJoystickSettings(jh);
|
return new AndroidJoystickSettings(jh);
|
||||||
|
|
||||||
case AndroidTouchHandler:
|
|
||||||
return new TouchSettings(handler);
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return base.CreateSettingsSubsectionFor(handler);
|
return base.CreateSettingsSubsectionFor(handler);
|
||||||
}
|
}
|
||||||
|
@ -28,15 +28,12 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager osuConfig)
|
private void load(OsuConfigManager osuConfig)
|
||||||
{
|
|
||||||
if (!RuntimeInfo.IsMobile) // don't allow disabling the only input method (touch) on mobile.
|
|
||||||
{
|
{
|
||||||
Add(new SettingsCheckbox
|
Add(new SettingsCheckbox
|
||||||
{
|
{
|
||||||
LabelText = CommonStrings.Enabled,
|
LabelText = CommonStrings.Enabled,
|
||||||
Current = handler.Enabled
|
Current = handler.Enabled
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
Add(new SettingsCheckbox
|
Add(new SettingsCheckbox
|
||||||
{
|
{
|
||||||
|
@ -23,9 +23,8 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
{
|
{
|
||||||
new PlayerCheckbox
|
new PlayerCheckbox
|
||||||
{
|
{
|
||||||
// TODO: change to touchscreen detection once https://github.com/ppy/osu/pull/25348 makes it in
|
LabelText = MouseSettingsStrings.DisableClicksDuringGameplay,
|
||||||
LabelText = RuntimeInfo.IsDesktop ? MouseSettingsStrings.DisableClicksDuringGameplay : TouchSettingsStrings.DisableTapsDuringGameplay,
|
Current = config.GetBindable<bool>(OsuSetting.MouseDisableButtons)
|
||||||
Current = config.GetBindable<bool>(RuntimeInfo.IsDesktop ? OsuSetting.MouseDisableButtons : OsuSetting.TouchDisableGameplayTaps)
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user