Beispiel #1
0
 private void MouseUpdated(object sender, SinglePointEventArgs e)
 {
     if (_mouseVisible)
     {
         MouseHook.X = (int)e.Point.X;
         MouseHook.Y = (int)e.Point.Y;
     }
 }
Beispiel #2
0
 private void LaserUpdated(object sender, SinglePointEventArgs e)
 {
     if (LaserVisible == Visibility.Visible && _laserOwner == e.UserID)
     {
         //Point3D point = e.Point.ToScreenPosition(new Size(640, 480), ScreenResolution, new Point(213, 160),
         //                                         new Size(213, 160));
         var point = e.Point.ToScreenPosition(new Size(640, 480), ScreenResolution);
         Laser = new Point3D(point.X, point.Y, 20);
     }
 }
 private void MouseUpdated(object sender, SinglePointEventArgs e)
 {
     if (_mouseVisible)
     {
         MouseHook.X = (int) e.Point.X;
         MouseHook.Y = (int) e.Point.Y;
     }
 }
 private void LaserUpdated(object sender, SinglePointEventArgs e)
 {
     if (LaserVisible == Visibility.Visible && _laserOwner == e.UserID)
     {
         //Point3D point = e.Point.ToScreenPosition(new Size(640, 480), ScreenResolution, new Point(213, 160),
         //                                         new Size(213, 160));
         var point = e.Point.ToScreenPosition(new Size(640, 480), ScreenResolution);
         Laser = new Point3D(point.X,point.Y,20);
     }
 }