I have a large C++ game project in which I want to add support for Xbox One controllers. I tried using the Windows.Gaming.Input namespace. However, it seems that this is only available for UWP projects. Is this true?
If this is the case, would it be easy to port an existing SDL engine to UWP?
You can call into Windows.Gaming.Input just fine from desktop applications - not sure where you got the idea that it's only available to UWP applications. Just include the header and use it. Here's the sample code for printing button states on all the gamepads: