/// <summary> /// Initializes a new HwndMouseEventArgs. /// </summary> /// <param name="state">The state from which to initialize the properties.</param> public MesHwndMouseEventArgs(MesHwndMouseState state) { LeftButton = state.LeftButton; RightButton = state.RightButton; MiddleButton = state.MiddleButton; X1Button = state.X1Button; X2Button = state.X2Button; ScreenPosition = state.ScreenPosition; }
/// <summary> /// Initializes a new HwndMouseEventArgs. /// </summary> /// <param name="state">The state from which to initialize the properties.</param> /// <param name="doubleClickButton">The button that was double clicked.</param> public MesHwndMouseEventArgs(MesHwndMouseState state, MouseButton doubleClickButton) : this(state) { DoubleClickButton = doubleClickButton; }
/// <summary> /// Initializes a new HwndMouseEventArgs. /// </summary> /// <param name="state">The state from which to initialize the properties.</param> /// <param name="mouseWheelDelta">The mouse wheel rotation delta.</param> /// <param name="mouseHWheelDelta">The horizontal mouse wheel delta.</param> public MesHwndMouseEventArgs(MesHwndMouseState state, int mouseWheelDelta, int mouseHWheelDelta) : this(state) { WheelDelta = mouseWheelDelta; HorizontalWheelDelta = mouseHWheelDelta; }