Exemplo n.º 1
0
 /// <summary>
 /// Reads the supplied message and executes any Mouse Wheel events required.
 /// </summary>
 /// <param name="message">The Message to parse</param>
 private void WmMouseWheel(ref Message message)
 {
     invokeMouseWheel(new InputEventMouse(MouseEvent.WheelScroll,
                                          translateWParamIntoMouseButtons(Message.SignedLowWord(message.WParam)),
                                          Message.SignedHighWord(message.WParam),
                                          Message.SignedLowWord(message.LParam),
                                          Message.SignedHighWord(message.LParam),
                                          (int)(long)message.WParam,
                                          ModifierKeys
                                          ));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Reads the supplied message and executes any Mouse Up events required.
 /// </summary>
 /// <param name="message">The Message to parse</param>
 /// <param name="button">The Mouse Button the Message is for</param>
 /// <param name="clicks">The number of clicks for the Message</param>
 private void WmMouseUp(ref Message message, WinMouseButtons button, int clicks)
 {
     // HandleMouseBindings();
     invokeMouseUp(new InputEventMouse(MouseEvent.Up,
                                       button,
                                       clicks,
                                       Message.SignedLowWord(message.LParam),
                                       Message.SignedHighWord(message.LParam),
                                       (int)(long)message.WParam,
                                       ModifierKeys
                                       ));
 }