title: Unity3d MultiTouch in Editor with Touch Screen
body: <p>I'm building an application in unity on my laptop which has a touch screen.
  I'm trying to get zoom to working on the camera.</p>
  
  <p>I wrote a script to handle multi-touch</p>
  
  <pre><code>if (Input.touchCount == 2)
  {
      var touch0 = Input.GetTouch(0);
      var touch1 = Input.GetTouch(1);
  
      var prevTouch0Pos = touch0.position - touch0.deltaPosition;
      var prevTouch1Pos = touch1.position - touch1.deltaPosition;
  
      var prevTouchMag = (prevTouch0Pos - prevTouch1Pos).magnitude;
      var touchMag = (touch0.position - touch1.position).magnitude;
  
      var deltaMag = prevTouchMag - touchMag;
  
      if(deltaMag &gt; 0)
      {
          Debug.Log("Zoom in");
      }
      else if (deltaMag &lt; 0)
      {
          Debug.Log("Zoom Out");
      }
  }
  </code></pre>
  
  <p>When I'm debugging in the Unity Editor It never registers that I have two touches.   I have a touch screen laptop, is there a way I can setup the project so it will register those touches, or is there a way that I can use the mouse pad to simulate the touch screen?</p>