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)); }
public static void PlatformSetCursor(MouseCursor cursor) { }
/// <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); }
private static void PlatformSetCursor(MouseCursor cursor) { Sdl.Mouse.SetCursor(cursor.Handle); }
public static void PlatformSetCursor(MouseCursor cursor) { _window.Cursor = cursor.Cursor; }