Ejemplo n.º 1
0
 /// <summary>
 /// Returns true if the current screen gets an input.
 /// </summary>
 /// <param name="screen"></param>
 /// <param name="input"></param>
 /// <returns></returns>
 public bool GetsInput(IScreen screen, Input input)
 {
     if (mInputTaken) return false;
     if (input.mType == InputType.Keystroke) return true;
     var getsInput = screen.IsInScreen(mMouseState.X, mMouseState.Y);
     mInputTaken = getsInput;
     return getsInput;
 }