/// <summary> /// Initializes a new HwndMouseEventArgs. /// </summary> /// <param name="state">The state from which to initialize the properties.</param> public HwndMouseEventArgs(HwndMouseState 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 HwndMouseEventArgs(HwndMouseState 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 HwndMouseEventArgs(HwndMouseState state, int mouseWheelDelta, int mouseHWheelDelta) : this(state) { WheelDelta = mouseWheelDelta; HorizontalWheelDelta = mouseHWheelDelta; }