mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 17:57:38 +08:00
31 lines
938 B
C#
31 lines
938 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
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
|
|
{
|
|
LabelText = "Disable mouse buttons"
|
|
}
|
|
};
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuConfigManager config) => mouseButtonsCheckbox.Bindable = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
|
|
}
|
|
}
|