Beispiel #1
0
        private void Ms_listener_MouseMove(MouseHook.MSLLHOOKSTRUCT mouseStruct)
        {
            var mouseNew = new Point(mouseStruct.pt.x, mouseStruct.pt.y);

            mouseDelta = new Point(mouseNew.X - mouseOld.X, mouseNew.Y - mouseOld.Y);
            mouseOld   = mouseNew;
        }
Beispiel #2
0
 private static void RightButtonDown(MouseHook.MSLLHOOKSTRUCT mouseStruct)
 {
     rmc++; rmh = true;
 }
Beispiel #3
0
 private static void RightButtonUp(MouseHook.MSLLHOOKSTRUCT mouseStruct) =>
 rmh = false;
Beispiel #4
0
 private static void LeftButtonDown(MouseHook.MSLLHOOKSTRUCT mouseStruct)
 {
     lmc++; lmh = true;
 }
Beispiel #5
0
 private static void LeftButtonUp(MouseHook.MSLLHOOKSTRUCT mouseStruct) =>
 lmh = false;