Xbox One Controller Prevent Default Back Button Behavior With Javascript
I have an xbox one app that has a webview containing a javascript app. In my React app I have something like this: navigator.gamepadInputEmulation = 'gamepad'; window.addEventList
Solution 1:
Here is a quick fix for you, just intercept the 'backrequested' and set it as handled:
var systemNavManager = Windows.UI.Core.SystemNavigationManager.getForCurrentView();
systemNavManager.addEventListener("backrequested", (event)=>event.handled = true, false);
Hope that helps!
Post a Comment for "Xbox One Controller Prevent Default Back Button Behavior With Javascript"