Пример #1
0
        protected override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (InputHandler.IsActionPressed("Forward"))
            {
                Camera.MoveForward(10f);
            }

            if (InputHandler.IsActionPressed("Backward"))
            {
                Camera.MoveBackward(10f);
            }

            if (InputHandler.IsActionPressed("Left"))
            {
                Camera.StrafeLeft(10f);
            }

            if (InputHandler.IsActionPressed("Right"))
            {
                Camera.StrafeRight(10f);
            }
        }