コード例 #1
0
ファイル: Game.cs プロジェクト: NikolayZagday/ConsoleGame
        private void ProcessTypingInput()
        {
            //iterate through the alphabet
            for (int i = 44; i <= 69; i++)
            {
                if (Keyboard.IsKeyDown((Key)i))
                {
                    Typewriter.AddLetter((Key)i);
                }
            }

            if (Keyboard.IsKeyDown(Key.Back))
            {
                Typewriter.DeleteLastLetter();
            }

            if (Keyboard.IsKeyDown(Key.Space))
            {
                Typewriter.AddSpace();
            }
        }