I have a XAML/C# UWP app running a WebView for hosted content. With the legacy version of the app (a .jsproj type), I can run it on Windows 10/11 and the page within receives input from the controller. In my new version, the page within seems blind to any controller input and I am unsure why. JavaScript on the hosted portion of the app has the following:
window.navigator.gamepadInputEmulation = 'keyboard';
and I have also tried setting it to:
window.navigator.gamepadInputEmulation = 'gamepad';
But to no avail. This new version using C#/XAML doesn't propagate Xbox Controller input to the WebView. However, it does get input from the keyboard.
Controller input works fine though if I run this version on an Xbox One.