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