예제 #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));
             }
         }
     }
 }