Advertisement
wingman007

SnakeOOPFinal_Input

Oct 27th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace SnakeOOP1b.View
  8. {
  9.     class Input
  10.     {
  11.         public bool IsKeyAvailable()
  12.         {
  13.             return Console.KeyAvailable;
  14.         }
  15.  
  16.         public ConsoleKeyInfo GetKey()
  17.         {
  18.             return Console.ReadKey(true);
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement