From 47325fd4fcea4dba46b5e00abfacf23f39c30e50 Mon Sep 17 00:00:00 2001 From: Dao Heng Liu Date: Sat, 17 May 2025 05:31:37 +0100 Subject: [PATCH] use native operating system cursor remove unused code --- osu.Game/OsuGame.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs index a6b70b2f66..4c2d982d13 100644 --- a/osu.Game/OsuGame.cs +++ b/osu.Game/OsuGame.cs @@ -344,7 +344,6 @@ public override void SetHost(GameHost host) if (host.Window != null) { - host.Window.CursorState |= CursorState.Hidden; host.Window.DragDrop += path => { // on macOS/iOS, URL associations are handled via SDL_DROPFILE events. @@ -967,6 +966,11 @@ protected override void LoadComplete() { base.LoadComplete(); + GlobalCursorDisplay.MenuCursor.AlwaysPresent = true; // required for tooltip display + + // we don't want to show the menu cursor as it would appear on stream output. + GlobalCursorDisplay.MenuCursor.Alpha = 0; + if (RuntimeInfo.EntryAssembly.GetCustomAttribute() == null) Logger.Log(NotificationsStrings.NotOfficialBuild.ToString());