Using the Xbox 360 Controller in a WPF Application

I am currently trying to use my Xbox 360 controller in my WPF application, but all of the online tutorials are about using XNA in a gaming environment. I'm just wondering if I have the opportunity to get my application to detect my Xbox 360 controller and any clicks of the navigation button / button that may come from it. My current setup is visual studio 2010, .NET 4.0, WPf, C #, and I have an xbox 360 wireless adapter for PC. Thank!

+5
source share
1 answer

Consider [Bruno Silva’s solution for integrating an Xbox 360 controller with PowerPoint] [x]. The first project was for the Office add-in for Powerpoint, but the base project is a shell that allows you to use the gamepad in a Windows or WPF application.

It wraps the XNA class Microsoft.Xna.Framework.Input.GamePadand provides an interface with events associated with each change in the status of the button, as well as connecting / disconnecting the game panel.

[Bruno Silva's blog contains links to the project and sample code] [x].

You will need to install the XNA Framework 2.0. I'm not sure if later versions are compatible.

+5
source

All Articles