protected override void Update(GameTime gameTime) { if (!_keyboardControl.EditingMode && _keyboardControl.IsKeyPressed(Keys.Escape)) { Exit(); } _keyboardComponent.Update(); _mouseComponent.Update(); _guiManager.Update(); _boardManager.Update(gameTime); base.Update(gameTime); }
protected override void Update(GameTime gameTime) { var keyboardState = Keyboard.GetState(); if (keyboardState.IsKeyDown(Keys.Escape)) { Exit(); } _mouseComponent.Update(); UpdateEdition(); UpdateDragSegment(); UpdateScroll(); _keyboardComponent.Update(); _guiManager.Update(); base.Update(gameTime); }