示例#1
0
        protected override void Update(GameTime gameTime)
        {
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                Exit();
            }


            Manejador.tiempoDelta = (float)gameTime.ElapsedGameTime.TotalSeconds;
            Entrada.ActualizarEntrada();
            ManejadorEscenas.Actualizar();
            IsMouseVisible = Manejador.MostrarCursor;

            base.Update(gameTime);
        }