How to detect Xbox controller key press events in Windows 11 in Winjs UWP app?

383 Views Asked by At

I am not able to navigate in my UWP WinJS app using a gamepad controller in Windows 11. It is working fine in Windows 10 though.

I also found out that I am no longer getting keydown event when pressing any key on Xbox controller.

I am confused. Anyone can advise something to try. TIA I've also created a sample app, which just prints the key captured by keydown event. Works fine in Windows 10 but not in Windows 11. Sample App: https://1drv.ms/u/s!Aj082Ju6Hyp0jo4mPd9nq6vO3zStzA?e=qplpBs

Ref:

https://learn.microsoft.com/en-us/uwp/api/windows.system.virtualkey?view=winrt-20348

0

There are 0 best solutions below