public Mouse(uint X, uint Y)
 {
     this.X     = X;
     this.Y     = Y;
     this.mouse = new Cosmos.Hardware.Mouse();
     this.mouse.Initialize();
     this.mouse.X = (int)this.X;
     this.mouse.Y = (int)this.Y;
 }
Ejemplo n.º 2
0
        public static void setup()
        {
            screen = new Cosmos.Hardware.VGAScreen();
            screen.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);
            for (int i = 0; i <= 255; i++)
            {
                screen.SetPaletteEntry(i, (byte)i, (byte)i, (byte)i);
            }
            screen.Clear(255);

            mouse = new Cosmos.Hardware.Mouse();
            mouse.Initialize(320, 200);
        }
 public Mouse(uint screenWidth, uint screenHeight)
 {
     //Create and initialise the underlying driver
     mouse = new Cosmos.Hardware.Mouse();
     mouse.Initialize(screenWidth, screenHeight);
 }