Accelerometer.MainWindow.Update C# (CSharp) Метод

Update() публичный Метод

Update the specified elapsedTime.
public Update ( System.TimeSpan elapsedTime ) : void
elapsedTime System.TimeSpan Elapsed time.
Результат void
        public override void Update(TimeSpan elapsedTime)
        {
            if (this.game != null && !this.game.HasExited)
            {
                if (this.splashState)
                {
                    #region WAVE SOFTWARE LICENSE AGREEMENT
                    position.X = (this.Width / 2.0f) - (this.splashScreen.Width / 2.0f);
                    position.Y = (this.Height / 2.0f) - (this.splashScreen.Height / 2.0f);
                    this.time += elapsedTime;
                    if (time > TimeSpan.FromSeconds(2))
                    {
                        this.splashState = false;
                    }
                    #endregion
                }
                else
                {
                    if (WaveServices.Input.KeyboardState.Escape == ButtonState.Pressed)
                    {
                        WaveServices.Platform.Exit();
                    }
                    else {
                        this.game.UpdateFrame(elapsedTime);
                    }
                }
            }
        }