mouseclass中没有定义X和Y,如何在Cosmos中绘制鼠标光标?

How to draw mouse cursor in Cosmos when there isn't any definition for X and Y in mouse class?

我正在使用 Cosmos User Kit 在 C# 中创建操作系统。
我想在 OS.
中绘制鼠标光标 但是 "Mouse" class 不包含 X 和 Y 的定义。

这是我的代码:

using Cosmos.System.Graphics;
using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;
using System.Drawing;
using Cosmos.Core.IOGroup;

namespace NewOPeratingSystem
{
    public class Kernel : Sys.Kernel
    {
        Canvas canvas;
        public static Mouse m = new Mouse();
        protected override void BeforeRun()
        {
            Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back.");
            canvas = FullScreenCanvas.GetFullScreenCanvas();
            canvas.Clear(Color.Blue);

        }

        protected override void Run()
        {


            Pen pen = new Pen(Color.Red);
            canvas.DrawLine(pen, m.X, m.Y, m.X + 5, m.Y);
            canvas.DrawLine(pen, m.X, m.Y, m.X, m.Y - 5);
            canvas.DrawLine(pen, m.X, m.Y, m.X + 5, m.Y - 5);





        }
    }
}

我收到以下错误:

CS1061:'Mouse' does not contain a definition for 'X' and no accessible extension method 'X' accepting a first argument of type 'Mouse' could be found (are you missing a using directive or an assembly reference?)

CS1061:'Mouse' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'Mouse' could be found (are you missing a using directive or an assembly reference?)

对不起,如果我迟到了,但我找到了答案。

Cosmos.System.MouseManager 就是这样 在使用它之前你必须给它 ScreenHeight 和 ScreenWidth。 注意:它是一个静态 class.