예제 #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="MouseHookListener"/>.
 /// </summary>
 /// <param name="hooker">Depending on this parameter the listener hooks either application or global mouse events.</param>
 /// <remarks>
 /// Hooks are not active after installation. You need to use either <see cref="BaseHookListener.Enabled"/> property or call <see cref="BaseHookListener.Start"/> method.
 /// </remarks>
 public MouseHookListener(Hooker hooker)
     : base(hooker)
 {
     m_PreviousPosition             = new Point(-1, -1);
     m_PreviousClickedTime          = 0;
     m_DownButtonsWaitingForMouseUp = MouseButtons.None;
     m_SuppressButtonUpFlags        = MouseButtons.None;
     m_PreviousClicked       = MouseButtons.None;
     m_SystemDoubleClickTime = MouseNativeMethods.GetDoubleClickTime();
 }
예제 #2
0
 public GlobalMouseListener()
     : base(HookHelper.HookGlobalMouse)
 {
     m_SystemDoubleClickTime = MouseNativeMethods.GetDoubleClickTime();
 }
예제 #3
0
 // Token: 0x060002BA RID: 698 RVA: 0x00003409 File Offset: 0x00001609
 public GlobalMouseListener() : base(new Subscribe(HookHelper.HookGlobalMouse))
 {
     this.m_SystemDoubleClickTime = MouseNativeMethods.GetDoubleClickTime();
 }