Esempio n. 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;
     }
 }
Esempio n. 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;
     }
 }
Esempio n. 3
0
        public PointerNode(PointerRole role)
        {
            PointerRole = role;

        }
Esempio n. 4
0
        public InputRedirect(PointerRole role)
        {
            PointerRole = role;

        }