Reading out the Xbox One controller in a Universal App

One of the reasons I bought an Xbox instead of a PS4 is that Microsoft made a promise that every console could be unlocked for developers. Since I’m fairly familiar with C#, Visual Studio and the Windows ecosystem in general, the choice made sense.

Let’s see what you can get out of the Xbox One controller using the standard Universal App API’s. Seems it’s fairly simple and uses a minimum amount of code.

Note: unfortunately you cannot use the Xbox one controller directly on a Raspberry PI 2/ 3 with Windows 10 IOT since there is, at the moment of writing, no driver for it…

Create a background task that polls the controller and translates everything into an Event:

Registering events to consume them later:

Consume the event and show something in the GUI:

All of this is sort of like a proof of concept. It’s up to you to extend this now.

If you want to, you can check out the GitHub repository here.

Leave a Reply

Your email address will not be published. Required fields are marked *