2019-01-24 08:43:03 +00: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 14:22:37 +00:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.PlayerSettings
|
|
|
|
|
{
|
|
|
|
|
public class InputSettings : PlayerSettingsGroup
|
|
|
|
|
{
|
|
|
|
|
private readonly PlayerCheckbox mouseButtonsCheckbox;
|
|
|
|
|
|
|
|
|
|
public InputSettings()
|
2020-09-09 09:48:02 +00:00
|
|
|
|
: base("Input Settings")
|
2018-05-09 14:22:37 +00:00
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
mouseButtonsCheckbox = new PlayerCheckbox
|
|
|
|
|
{
|
2018-05-09 14:31:52 +00:00
|
|
|
|
LabelText = "Disable mouse buttons"
|
2018-05-09 14:22:37 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2019-06-17 10:37:24 +00:00
|
|
|
|
private void load(OsuConfigManager config) => mouseButtonsCheckbox.Current = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
|
2018-05-09 14:22:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|