How to remove cursor and use the gamepad in a UWP app?

Tharun Koti 5 Reputation points
2023-05-19T11:25:40.4566667+00:00

When I run my application on XBOX using Visual Studio I'm getting a cursor by default which I wanted to remove and use the GamePad buttons to move the focus around the app.

I've tried giving this method as well as mentioned in MDN.

this.RequiresPointerMode = Windows.UI.Xaml.ApplicationRequiresPointerMode.WhenRequested;

<Grid>
        <WebView 
            Source="https://stackoverflow.com/questions/53377615/uwp-app-use-xbox-controller-instead-of-mouse">
        </WebView>
    </Grid>

Any inputs are appreciated to fix this issue so that focus can be managed using GamePad instead of cursor pointer. Thank you.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,548 questions
{count} vote