title: Simulate gamepad input in UWP app on Xbox
body: <p>I am trying to simulate user's input in UWP app running on Xbox. At first I tried to press a key via <code>InjectedInputKeyboardInfo</code> and it works fine.</p>
  
  <pre><code>var inputInjector = InputInjector.TryCreate();
  
  InjectedInputKeyboardInfo inputKeyboardInfo = new InjectedInputKeyboardInfo
  {
      KeyOptions = InjectedInputKeyOptions.ScanCode,
      ScanCode = 22
  };
  
  inputInjector.InjectKeyboardInput(new[] { inputKeyboardInfo });
  </code></pre>
  
  <p>Then I tried to press a key on gamepad and it actually does nothing. No error, no exception.</p>
  
  <pre><code>InjectedInputGamepadInfo info = new InjectedInputGamepadInfo
  {
      Buttons = GamepadButtons.A
  };
  
  inputInjector.InjectGamepadInput(info);
  </code></pre>
  
  <p>I updated my package manifest:</p>
  
  <ul>
  <li>added namespace <code>xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"</code></li>
  <li>added <code>IgnorableNamespaces="rescap"</code></li>
  <li>added capability <code>&lt;rescap:Capability Name="inputInjectionBrokered" /&gt;</code></li>
  </ul>
  
  <p>My app has min/target version 16299.<br>
  My Xbox runs on 16299.4055.</p>