Beyond_Beyaan.Screens.NewGame.KeyDown C# (CSharp) Метод

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

public KeyDown ( KeyboardInputEventArgs e ) : void
e KeyboardInputEventArgs
Результат void
        public void KeyDown(KeyboardInputEventArgs e)
        {
            if (_generatingGalaxy)
            {
                return;
            }
            if (e.Key == KeyboardKeys.Escape)
            {
                if (_showingSelection)
                {
                    //Close the race selection
                    _showingSelection = false;
                    return;
                }
                _gameMain.ChangeToScreen(Screen.MainMenu);
            }
            if (_playerEmperorName.KeyDown(e))
            {
                return;
            }
            if (_playerHomeworldName.KeyDown(e))
            {
                return;
            }
        }