internal void ChangeInput()
		{
			if ((ModifierKeys & Keys.Shift) == Keys.Shift)
			{
				if (!(Input is InputWithShift))
					Input = new InputWithShift(this);
			}
			else if ((ModifierKeys & Keys.Control) == Keys.Control)
			{
				if (!(Input is InputWithControl))
					Input = new InputWithControl(this);
			}
			else
			{
				if (!(Input.GetType() == typeof(NormalInputState)))
					Input = new NormalInputState(this);
			}
		}
Beispiel #2
0
 internal void ChangeInput()
 {
     if ((ModifierKeys & Keys.Shift) == Keys.Shift)
     {
         if (!(Input is InputWithShift))
         {
             Input = new InputWithShift(this);
         }
     }
     else if ((ModifierKeys & Keys.Control) == Keys.Control)
     {
         if (!(Input is InputWithControl))
         {
             Input = new InputWithControl(this);
         }
     }
     else
     {
         if (!(Input.GetType() == typeof(NormalInputState)))
         {
             Input = new NormalInputState(this);
         }
     }
 }