Document your code
Every project on GitHub comes with a version-controlled wiki to give your documentation the high level of care it deserves. It’s easy to create well-maintained, Markdown or rich text documentation alongside your code.
Sign up for free See pricing for teams and enterprisesCreating a GUI Adding the mouse
After you have intialised the screen, adding a mouse is quite simple.
//Initialise the canvas
var canvas = FullScreenCanvas.GetFullScreenCanvas();To get the state of the mouse, you can use the MouseManager class in Cosmos.System.
First initialize the mouse with your screen size.
Sys.MouseManager.ScreenWidth = (uint)canvas.Mode.Columns;
Sys.MouseManager.ScreenHeight = (uint)canvas.Mode.Rows;All that remains is to draw it, (note you want to redraw every frame)
Pen pen = new Pen(Color.Red);
int X = Sys.MouseManager.X;
int Y = Sys.MouseManager.Y;
canvas.DrawLine(pen, X, Y, X + 5, Y);
canvas.DrawLine(pen, X, Y, X, Y - 5);
canvas.DrawLine(pen, X, Y, X + 5, Y - 5);

