示例#1
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);
     }
 }
 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);
         }
     }
 }