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; } }
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; } }
public PointerNode(PointerRole role) { PointerRole = role; }
public InputRedirect(PointerRole role) { PointerRole = role; }