public void HookMouse()
 {
     _mouseInput             = new User32.MouseInput();
     _mouseInput.LmbDown    += MouseInputOnLmbDown;
     _mouseInput.LmbUp      += MouseInputOnLmbUp;
     _mouseInput.MouseMoved += MouseInputOnMouseMoved;
     Logger.WriteLine("Enabled mouse hook");
 }
 public void UnHookMouse()
 {
     if (_uiMovable || _mouseInput == null)
         return;
     _mouseInput.Dispose();
     _mouseInput = null;
     Logger.WriteLine("Disabled mouse hook", "Overlay");
 }
 public void HookMouse()
 {
     if (_mouseInput != null)
         return;
     _mouseInput = new User32.MouseInput();
     _mouseInput.LmbDown += MouseInputOnLmbDown;
     _mouseInput.LmbUp += MouseInputOnLmbUp;
     _mouseInput.MouseMoved += MouseInputOnMouseMoved;
     Logger.WriteLine("Enabled mouse hook", "Overlay");
 }
 public void UnHookMouse()
 {
     _mouseInput.Dispose();
     _mouseInput = null;
     Logger.WriteLine("Disabled mouse hook");
 }
		public void UnHookMouse()
		{
			_mouseInput.Dispose();
			_mouseInput = null;
			Logger.WriteLine("Disabled mouse hook");
		}
		public void HookMouse()
		{
			_mouseInput = new User32.MouseInput();
			_mouseInput.LmbDown += MouseInputOnLmbDown;
			_mouseInput.LmbUp += MouseInputOnLmbUp;
			_mouseInput.MouseMoved += MouseInputOnMouseMoved;
			Logger.WriteLine("Enabled mouse hook");
		}