Ejemplo n.º 1
0
        /// <summary>
        /// Creates a <see cref="ManaWindow"/> and runs the game within it.
        /// </summary>
        public void Run()
        {
            using var window = new ManaWindow(_initializationParameters);

            Window = window;

            window.Run(this);
        }
Ejemplo n.º 2
0
        public ManaWindowInputProvider(ManaWindow window)
        {
            Window             = window;
            Window.MouseEnter += WindowOnMouseEnter;
            Window.MouseLeave += WindowOnMouseLeave;
            Window.MouseMove  += WindowOnMouseMove;

            KeyTyped += Input.OnKeyTyped;
        }
Ejemplo n.º 3
0
        public ManaWindowInputProvider(ManaWindow window)
        {
            Window             = window;
            Window.MouseEnter += WindowOnMouseEnter;
            Window.MouseLeave += WindowOnMouseLeave;
            Window.MouseMove  += WindowOnMouseMove;
            Window.KeyPress   += WindowOnKeyPress;

            _previousGamePadStates = new GamePadState[SUPPORTED_GAMEPAD_COUNT];
            _currentGamePadStates  = new GamePadState[SUPPORTED_GAMEPAD_COUNT];

            KeyTyped += Input.OnKeyTyped;
        }
Ejemplo n.º 4
0
Archivo: Game.cs Proyecto: Perksey/Mana
 /// <summary>
 /// Creates a <see cref="ManaWindow"/> and runs the game within it.
 /// </summary>
 public void Run()
 {
     using var window = new ManaWindow();
     Window           = window;
     window.Run(this);
 }