/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Update(GameTime gameTime) { if (Keyboard.GetState().IsKeyDown(Keys.Escape)) { Console.WriteLine("Closing app"); Exit(); } mtx.WaitOne(); cfd.Statistics = statistics; mtx.ReleaseMutex(); cfd.update(gameTime); UIConsole.GlobalConsole.update(gameTime); satelliteBusyLed.update(gameTime); heartBeatLed.update(gameTime); if (heartBeatCount == 10) { heartBeatLed.Color = Color.Red; } else { heartBeatCount++; } statisticsSocketLed.Color = cn.StatisticsConnected ? Color.Lime : Color.Red; dataSocketLed.Color = cn.DataConnected ? Color.Lime : Color.Red; statisticsSocketLed.update(gameTime); dataSocketLed.update(gameTime); frameLockLed.update(gameTime); cons.update(gameTime); cursor.update(gameTime); base.Update(gameTime); }