Skip to content

Commit

Permalink
Add Hidden cursor state flag on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Dec 21, 2024
1 parent 1174f46 commit 1c48fdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion osu.Desktop/OsuGameDesktop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ public override void SetHost(GameHost host)
if (iconStream != null)
host.Window.SetIconFromStream(iconStream);

host.Window.CursorState |= CursorState.Hidden;
host.Window.Title = Name;
}

Expand Down
1 change: 1 addition & 0 deletions osu.Game/OsuGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ 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.
Expand Down

0 comments on commit 1c48fdb

Please sign in to comment.