public void X1DownTest() { sender.X1Down(); Assert.AreEqual(mouseEvents[0].Item1, LowLevelMouseHook.Event.WM_XBUTTONDOWN); Assert.IsTrue(mouseEvents[0].Item2.mouseData.asXButton.isXButton1); sender.X1Up(); }
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(); } }); }