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(); } }); }
public void MiddleDownTest() { sender.MiddleDown(); sender.MiddleUp(); Assert.AreEqual(mouseEvents[0].Item1, LowLevelMouseHook.Event.WM_MBUTTONDOWN); }