I have been trying to make an Xbox One controller interact with a UWP application and have looked into the Gamepad class (based on the suggestions mentioned in the comments - Controller support for Xbox one in Windows UWP). I have 2 issues:
1) Gamepad.Gamepads.Count returns 0 for me even when I have my Xbox One controller switched on while the application is running on Xbox.
2) I do not know, how exactly can I assess when the A, B, X and Y buttons are pressed and also access the coordinates of the Left and Right Thumbsticks.
Any guidance about the 2 points mentioned above, would be very helpful for me. Thanks!
One way to handle input, via the controller, is by just using
keypress
events.