AnodyneSharp.States.MenuSubstates.CheatzSubstate.HandleInput C# (CSharp) Метод

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

public HandleInput ( ) : void
Результат void
        public override void HandleInput()
        {
            if (KeyInput.JustPressedRebindableKey(KeyFunctions.Up))
            {
                AddChar('U');
            }
            else if (KeyInput.JustPressedRebindableKey(KeyFunctions.Right))
            {
                AddChar('R');
            }
            else if (KeyInput.JustPressedRebindableKey(KeyFunctions.Down))
            {
                AddChar('D');
            }
            else if (KeyInput.JustPressedRebindableKey(KeyFunctions.Left))
            {
                AddChar('L');
            }
            else if (KeyInput.JustPressedRebindableKey(KeyFunctions.Accept))
            {
                AddChar('1');
            }
            else if (KeyInput.JustPressedRebindableKey(KeyFunctions.Cancel))
            {
                AddChar('2');
            }

            if (_cheatLabel.Text.Length == 10)
            {
                CheatzManager.DoCheat(_cheatLabel.Text);
                _cheatLabel.SetText("");
                ExitSubState();
            }
        }