// this function updates mouse input on all mouse events
 // some events must be sent once the gesture is completed
 // other events must be sent according to the gesture progress
 // progress ranges from 0 to 1
 internal void UpdateMouseMotionInput(double progress, ref MouseEventsHelper.MOUSEINPUT mouse)
 {
     // these cases are mouse events which are related to the gesture progress
     if ((int)EventPart1 > 3 && (int)EventPart1 <= 8)
     {
         MouseEventsHelper.AddMouseRollEvent(EventPart1, progress, ref mouse);
     }
     if ((int)EventPart2 > 3 && (int)EventPart2 <= 8)
     {
         MouseEventsHelper.AddMouseRollEvent(EventPart2, progress, ref mouse);
     }
 }
 internal void SendMouseButtonsInput()
 {
     // cases 1, 2 and 3 are mouse click cases, called once gesture is completed
     if ((int)EventPart1 > 0 && (int)EventPart1 <= 3)
     {
         MouseEventsHelper.SendMouseClickEvent(EventPart1);
     }
     if ((int)EventPart2 > 0 && (int)EventPart2 <= 3)
     {
         MouseEventsHelper.SendMouseClickEvent(EventPart2);
     }
 }
Exemple #3
0
 // this function updates mouse input on all mouse events
 // some events must be sent once the gesture is completed
 // other events must be sent according to the gesture progress
 // progress ranges from 0 to 1
 internal void UpdateMouseMotionInput(double progress, ref MouseEventsHelper.MOUSEINPUT mouse)
 {
     // these cases are mouse events which are related to the gesture progress
     if ((int)EventPart1 > 3 && (int)EventPart1 <= 8) MouseEventsHelper.AddMouseRollEvent(EventPart1, progress, ref mouse);
     if ((int)EventPart2 > 3 && (int)EventPart2 <= 8) MouseEventsHelper.AddMouseRollEvent(EventPart2, progress, ref mouse);
 }