Example #1
0
        public InputMouse(GameWindowGPU window)
        {
            _window = window;

            PaintStay = new SKPaint
            {
                Style       = SKPaintStyle.Fill,
                IsAntialias = true,
                Color       = new SKColor(200, 200, 200)
            };

            X          = 0;
            Y          = 0;
            Radius     = 10;
            KX         = Mouse.GetState().X;
            KY         = Mouse.GetState().Y;
            WindowRect = _window.ClientRectangle;
            State      = MouseType.Stay;
            Enabled    = true;
        }
Example #2
0
        public HipsterEngine CreateEngine(int width, int height)
        {
            Window = new GameWindowGPU(width, height);

            return(Window.Engine);
        }