Exemplo n.º 1
0
 private int CallNextHook(int code, MouseMessage message, ref MOUSESTATE state)
 {
     if (code >= 0)
     {
         OnMouseHooked(new MouseHookedEventArgs(message, ref state));
     }
     return(NativeMethod.CallNextHookEx(hook, code, message, ref state));
 }
Exemplo n.º 2
0
 public void CallMouse(int type)
 {
     // gun or bomb
     if (MOUSESTATE.WAIT == state || MOUSESTATE.UPMOVE == state)
     {
         state      = MOUSESTATE.DOWNMOVE;
         actionType = type;
     }
 }
Exemplo n.º 3
0
 internal MouseHookedEventArgs(MouseMessage message, ref MOUSESTATE state)
 {
     this.message = message;
     this.state   = state;
 }
Exemplo n.º 4
0
 public static extern int CallNextHookEx(IntPtr hook, int code, MouseMessage message, ref MOUSESTATE state);