1
0
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:
Susko3 2023-11-07 13:06:14 +01:00
parent 7385c3c97b
commit fcd73e62d2
3 changed files with 6 additions and 13 deletions

View File

@ -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);
} }

View File

@ -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
{ {

View File

@ -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)
} }
}; };
} }