title: UWP, Inject touch events Exception
body: <p>Using InputInjector and InjectedInputTouchInfo to programmatically send touch events in windows 10 1709. I have been able to send mouse events using InjectMouseInput. But When I tried to inject touch events, I am getting exception.
  Code tried is same as provided by <a href="https://docs.microsoft.com/en-us/uwp/api/windows.ui.input.preview.injection" rel="nofollow noreferrer">MSDN page</a></p>
  
  <pre><code>inputInjector.InjectTouchInput(
              new List&lt;InjectedInputTouchInfo&gt; {
              new InjectedInputTouchInfo {
                  Contact = new InjectedInputRectangle
                  {
                      Top = 50,
                      Bottom = 50,
                      Left = 40,
                      Right = 40
                  },
                  PointerInfo = new InjectedInputPointerInfo {
                      PixelLocation = new InjectedInputPoint {
                          PositionX = 40, PositionY = 50
                      },
                      PointerOptions = InjectedInputPointerOptions.PointerUp,
                      PointerId = 1,
                  },
                  Pressure = 0.0,
                  TouchParameters = 
                  InjectedInputTouchParameters.Pressure | 
                  InjectedInputTouchParameters.Contact
              }
          });
  </code></pre>
  
  <p>executed this code gives exception.</p>
  
  <blockquote>
    <p>{System.ArgumentException: Value does not fall within the expected range.
       at Windows.UI.Input.Preview.Injection.InputInjector.InjectTouchInput(IEnumerable`1 input)
       }</p>
  </blockquote>