Describes a mouse cursor.
Inheritance: IDisposable
Beispiel #1
0
        protected override void LoadContent()
        {
            StateManager.Instance.LoadContent(Content, _mainCamera);
            StateManager.Instance.AddState(new MainMenu(_mainCamera));
            var texture = Content.Load <Texture2D>("cursor");

            Mouse.SetCursor(MouseCursor.FromTexture2D(texture, 0, 0));
        }
Beispiel #2
0
 public static void PlatformSetCursor(MouseCursor cursor)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Sets the cursor image to the specified MouseCursor.
 /// </summary>
 /// <param name="cursor">Mouse cursor to use for the cursor image.</param>
 public static void SetCursor(MouseCursor cursor)
 {
     PlatformSetCursor(cursor);
 }
Beispiel #4
0
 private static void PlatformSetCursor(MouseCursor cursor)
 {
     Sdl.Mouse.SetCursor(cursor.Handle);
 }
Beispiel #5
0
 public static void PlatformSetCursor(MouseCursor cursor)
 {
     _window.Cursor = cursor.Cursor;
 }