示例#1
0
 /// <summary>
 /// Gets input from the user.
 /// </summary>
 private void GetInput()
 {
     while (true)
     {
         input = Console.ReadKey(true).KeyChar;
         if (input != null && !end)
         {
             if (VIP)
             {
                 Sounder.MakeCoolSound((char)input);
             }
             else
             {
                 Sounder.MakeSound(piano.Tones.GetInfo((char)input).Item2);
             }
         }
     }
 }
示例#2
0
 /// <summary>
 /// Gets input from the user.
 /// </summary>
 private void GetInput()
 {
     while (true)
     {
         input = Console.ReadKey(true).KeyChar;
         if (input != null)
         {
             if (userPaid)
             {
                 Sounder.MakeCoolSound(input);
             }
             else
             {
                 Sounder.MakeSound(GetFrequencyFromKey(input));
             }
         }
     }
 }
示例#3
0
 /// <summary>
 /// Gets input from the user.
 /// </summary>
 private void GetInput()
 {
     while (true)
     {
         input = Console.ReadKey(true).KeyChar;
         if (input != null && !end)
         {
             if (paid)
             {
                 Sounder.MakeCoolSound((char)input);
             }
             else
             {
                 Sounder.MakeSound(piano.PlayTone((char)input));
             }
         }
     }
 }