Exemplo n.º 1
0
		//ncrunch: no coverage start
		public WindowsMouse(Window window)
		{
			if (!StackTraceExtensions.StartedFromNCrunchOrNunitConsole)
				hook = new MouseHook();
			positionTranslater = new CursorPositionTranslater(window);
			positionTranslater.window.ViewportSizeChanged += size => wasViewportResizedThisFrame = true;
			mouseCounter = new MouseDeviceCounter();
		}
Exemplo n.º 2
0
 //ncrunch: no coverage start
 public WindowsMouse(Window window)
 {
     if (!StackTraceExtensions.StartedFromNCrunchOrNunitConsole)
     {
         hook = new MouseHook();
     }
     positionTranslater = new CursorPositionTranslater(window);
     positionTranslater.window.ViewportSizeChanged += size => wasViewportResizedThisFrame = true;
     mouseCounter = new MouseDeviceCounter();
 }
Exemplo n.º 3
0
 public WindowsMouse(CursorPositionTranslater  positionTranslater)
 {
     hook = new MouseHook();
     this.positionTranslater = positionTranslater;
     mouseCounter = new MouseDeviceCounter();
 }