mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
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 mouseWheelCheckbox;
|
|
private readonly PlayerCheckbox mouseButtonsCheckbox;
|
|
|
|
public InputSettings()
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
mouseWheelCheckbox = new PlayerCheckbox
|
|
{
|
|
LabelText = "Disable mouse wheel during gameplay"
|
|
},
|
|
mouseButtonsCheckbox = new PlayerCheckbox
|
|
{
|
|
LabelText = "Disable mouse buttons during gameplay"
|
|
}
|
|
};
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuConfigManager config)
|
|
{
|
|
mouseWheelCheckbox.Bindable = config.GetBindable<bool>(OsuSetting.MouseDisableWheel);
|
|
mouseButtonsCheckbox.Bindable = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
|
|
}
|
|
}
|
|
}
|