public override void Update(TimeSpan elapsedTime)
{
if (this.game != null && !this.game.HasExited)
{
if (WaveServices.Input.KeyboardState.F10 == ButtonState.Pressed)
{
this.FullScreen = !this.FullScreen;
}
if (this.splashState)
{
#region DEFAULT SPLASHSCREEN
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);
}
}
}
}