mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 17:43:12 +08:00
Merge pull request #11111 from ekrctb/fix-mouse-settings-null-reference
This commit is contained in:
commit
9cd3cec041
@ -33,9 +33,6 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
|||||||
configSensitivity.BindValueChanged(val => sensitivityBindable.Value = val.NewValue);
|
configSensitivity.BindValueChanged(val => sensitivityBindable.Value = val.NewValue);
|
||||||
sensitivityBindable.BindValueChanged(val => configSensitivity.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[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new SettingsCheckbox
|
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)
|
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
|
||||||
{
|
{
|
||||||
rawInputToggle.Disabled = true;
|
rawInputToggle.Disabled = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user