2019-01-24 16:43:03 +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.
|
2018-05-09 22:22:37 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
2022-01-05 17:29:09 +08:00
|
|
|
|
using osu.Game.Localisation;
|
2018-05-09 22:22:37 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.PlayerSettings
|
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class InputSettings : PlayerSettingsGroup
|
2018-05-09 22:22:37 +08:00
|
|
|
|
{
|
|
|
|
|
private readonly PlayerCheckbox mouseButtonsCheckbox;
|
|
|
|
|
|
|
|
|
|
public InputSettings()
|
2020-09-09 17:48:02 +08:00
|
|
|
|
: base("Input Settings")
|
2018-05-09 22:22:37 +08:00
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
mouseButtonsCheckbox = new PlayerCheckbox
|
|
|
|
|
{
|
2022-01-05 17:29:09 +08:00
|
|
|
|
LabelText = MouseSettingsStrings.DisableMouseButtons
|
2018-05-09 22:22:37 +08:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2019-06-17 18:37:24 +08:00
|
|
|
|
private void load(OsuConfigManager config) => mouseButtonsCheckbox.Current = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
|
2018-05-09 22:22:37 +08:00
|
|
|
|
}
|
|
|
|
|
}
|