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;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.PlayerSettings
|
|
|
|
|
{
|
|
|
|
|
public class InputSettings : PlayerSettingsGroup
|
|
|
|
|
{
|
|
|
|
|
protected override string Title => "Input settings";
|
|
|
|
|
|
|
|
|
|
private readonly PlayerCheckbox mouseButtonsCheckbox;
|
|
|
|
|
|
|
|
|
|
public InputSettings()
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
mouseButtonsCheckbox = new PlayerCheckbox
|
|
|
|
|
{
|
2018-05-09 22:31:52 +08:00
|
|
|
|
LabelText = "Disable mouse buttons"
|
2018-05-09 22:22:37 +08:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2018-05-11 01:38:55 +08:00
|
|
|
|
private void load(OsuConfigManager config) => mouseButtonsCheckbox.Bindable = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
|
2018-05-09 22:22:37 +08:00
|
|
|
|
}
|
|
|
|
|
}
|