Esempio n. 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();
         }
     });
 }
Esempio n. 2
0
 public void LeftDownTest()
 {
     sender.LeftDown();
     sender.LeftUp();
     Assert.AreEqual(mouseEvents[0].Item1, LowLevelMouseHook.Event.WM_LBUTTONDOWN);
 }