public void ATestyTest()
        {
            MousePosition postion = new MousePosition();

            postion.X = 10;

            postion.Y = 10;

            IrisCore.MouseService.SetMousePosition(postion);
        }
Esempio n. 2
0
        private void MouseHookOnMousePositionChanged(long x, long y)
        {
            lblLocalMouseMove.Text = "Local mouse: " + x + ", " + y;

            MousePosition mousePosition = new MousePosition();

            mousePosition.X = x;

            mousePosition.Y = y;

            mousePosition.RecipientId = _clientAddress.Text;

            var t = IrisCore.MouseService.SetMousePosition(mousePosition);
        }
Esempio n. 3
0
 private void MouseService_MousePositionChanged(MousePosition position)
 {
     this.Invoke(new MethodInvoker(delegate
     {
         mousePositionLabels[mousePositionLabels.Keys.First()].Text = "Mouse pos: " + position.X + ", " + position.Y;
     }));
 }
 public async Task<bool> SendMousePositionUpdate(MousePosition position)
 {
     return await SendMessage(position, MessageType.MousePositionUpdate);
 }
 private void ProcessMousePositionUpdate(MousePosition mousePosition)
 {
     if (ConfigurationService.InstanceId == mousePosition.RecipientId)
     {
         if (MousePositionUpdate != null)
         {
             MousePositionUpdate(mousePosition);
         }
     }
 }
 private void MouseService_MousePositionChanged(MousePosition position)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 7
0
 private void OnMousePositionUpdate(MousePosition position)
 {
     MousePositionChanged?.Invoke(position);
 }
Esempio n. 8
0
 public async Task<bool> SetMousePosition(MousePosition position)
 {
     return await IrisCore.NetworkManager.SendMousePositionUpdate(position);
 }