1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 19:55:45 +08:00

Merge pull request #11111 from ekrctb/fix-mouse-settings-null-reference

This commit is contained in:
Dean Herbert 2020-12-07 16:55:05 +09:00 committed by GitHub
commit 9cd3cec041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,9 +33,6 @@ namespace osu.Game.Overlays.Settings.Sections.Input
configSensitivity.BindValueChanged(val => sensitivityBindable.Value = val.NewValue);
sensitivityBindable.BindValueChanged(val => configSensitivity.Value = val.NewValue);
windowMode = config.GetBindable<WindowMode>(FrameworkSetting.WindowMode);
windowMode.BindValueChanged(mode => confineMouseModeSetting.Alpha = mode.NewValue == WindowMode.Fullscreen ? 0 : 1);
Children = new Drawable[]
{
new SettingsCheckbox
@ -70,6 +67,9 @@ namespace osu.Game.Overlays.Settings.Sections.Input
},
};
windowMode = config.GetBindable<WindowMode>(FrameworkSetting.WindowMode);
windowMode.BindValueChanged(mode => confineMouseModeSetting.Alpha = mode.NewValue == WindowMode.Fullscreen ? 0 : 1, true);
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
{
rawInputToggle.Disabled = true;