1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Update osu.Game/Overlays/Settings/Sections/Input/MouseSettings.cs

Set mouse confine mode at initialization

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
ekrctb 2020-12-07 16:09:14 +09:00 committed by GitHub
parent 2469608c10
commit f4eb17d398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ namespace osu.Game.Overlays.Settings.Sections.Input
};
windowMode = config.GetBindable<WindowMode>(FrameworkSetting.WindowMode);
windowMode.BindValueChanged(mode => confineMouseModeSetting.Alpha = mode.NewValue == WindowMode.Fullscreen ? 0 : 1);
windowMode.BindValueChanged(mode => confineMouseModeSetting.Alpha = mode.NewValue == WindowMode.Fullscreen ? 0 : 1, true);
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
{