2022-01-15 21:48:41 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Localisation;
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
using osu.Game.Localisation;
|
|
|
|
using osu.Game.Overlays.Settings;
|
|
|
|
|
|
|
|
namespace osu.iOS
|
|
|
|
{
|
2022-11-27 00:59:38 +08:00
|
|
|
public partial class IOSMouseSettings : SettingsSubsection
|
2022-01-15 21:48:41 +08:00
|
|
|
{
|
|
|
|
protected override LocalisableString Header => MouseSettingsStrings.Mouse;
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuConfigManager osuConfig)
|
|
|
|
{
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new SettingsCheckbox
|
|
|
|
{
|
|
|
|
LabelText = MouseSettingsStrings.DisableMouseWheelVolumeAdjust,
|
|
|
|
TooltipText = MouseSettingsStrings.DisableMouseWheelVolumeAdjustTooltip,
|
|
|
|
Current = osuConfig.GetBindable<bool>(OsuSetting.MouseDisableWheel),
|
|
|
|
},
|
|
|
|
new SettingsCheckbox
|
|
|
|
{
|
|
|
|
LabelText = MouseSettingsStrings.DisableMouseButtons,
|
|
|
|
Current = osuConfig.GetBindable<bool>(OsuSetting.MouseDisableButtons),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|