Windows Desktop
Introduction
Example Code - Changing the Cursor using MonoGame
FlatRedBallServices.Game.IsMouseVisible = true;
int originX = 0;
int originY = 0;
MouseCursor customCursor = MouseCursor.FromTexture2D(CursorTexture, originX, originY);
Mouse.SetCursor(customCursor);Example Code - Changing the Cursor using Windows Forms and .cur File
Example Code - Changing the Cursor using Windows Forms and .png File
Last updated
Was this helpful?