Exemple #1
0
 internal Action RestorePrimaryButtonDownEvent()
 {
     return(() =>
     {
         if (primaryEvent == Def.Constant.LeftButtonDown)
         {
             InputSender.LeftDown();
         }
         else if (primaryEvent == Def.Constant.MiddleButtonDown)
         {
             InputSender.MiddleDown();
         }
         else if (primaryEvent == Def.Constant.RightButtonDown)
         {
             InputSender.RightDown();
         }
         else if (primaryEvent == Def.Constant.X1ButtonDown)
         {
             InputSender.X1Down();
         }
         else if (primaryEvent == Def.Constant.X2ButtonDown)
         {
             InputSender.X2Down();
         }
     });
 }
Exemple #2
0
 public void LeftDownTest()
 {
     sender.LeftDown();
     sender.LeftUp();
     Assert.AreEqual(mouseEvents[0].Item1, LowLevelMouseHook.Event.WM_LBUTTONDOWN);
 }