コード例 #1
0
 /// <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;
     Position = state.Position;
     PreviousPosition = state.PreviousPosition;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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>
 public HwndMouseEventArgs(HwndMouseState state, int mouseWheelDelta, int mouseHWheelDelta)
     : this(state)
 {
     WheelDelta = mouseWheelDelta;
     HorizontalWheelDelta = mouseHWheelDelta;
 }