Example #1
0
 private void Initialize(PointerRole role)
 {
     switch(role)
     {
         case PointerRole.Controller:
             MouseHook.Register();
             MouseHook.MouseDown += new MouseEventHandler(MouseHookMouseDown);
             MouseHook.MouseMove+=new MouseEventHandler(MouseHookMouseMove);
             MouseHook.MouseUp += new MouseEventHandler(MouseHookMouseUp);
             break;
         case PointerRole.Slave:
             MouseHook.MouseDown += new MouseEventHandler(MouseHookMouseDown);
             MouseHook.MouseMove+=new MouseEventHandler(MouseHookMouseMove);
             MouseHook.MouseUp += new MouseEventHandler(MouseHookMouseUp);
             _mSocket.StartReceiving();
             break;
     }
 }
Example #2
0
 private void Initialize(PointerRole role)
 {
     switch (role)
     {
         case PointerRole.Controller:
             MouseHook.MouseDown += MouseHookMouseDown;
             MouseHook.MouseMove += MouseHookMouseMove;
             MouseHook.MouseUp += MouseHookMouseUp;
             _mSocket.StartReceiving();
             break;
         case PointerRole.Slave:
             MouseHook.MouseDown += MouseHookMouseDown;
             MouseHook.MouseMove += MouseHookMouseMove;
             MouseHook.MouseUp += MouseHookMouseUp;
             _mSocket.StartReceiving();
             break;
     }
 }
Example #3
0
        public PointerNode(PointerRole role)
        {
            PointerRole = role;

        }
Example #4
0
        public InputRedirect(PointerRole role)
        {
            PointerRole = role;

        }