tags:

views:

58

answers:

3

Hi there!

I know that all windows platforms automatically detect when a game controller is connected. I also know there is a WinAPI for polling these controllers. I can't seem to find the functions I am looking for anywhere.

Any help is greatly appreciated!

Brendan

+1  A: 

You can use either DirectInput or XInput from the DirectX SDK.

James McNellis
+1  A: 

Or use the XNA toolkit available from Microsoft, this includes the DirectX runtime and makes it easy to develop a game and would be certain that there is an API by XNA to interact with game controllers.

Hope this helps, Best regards, Tom.

tommieb75
Yeah, but isn't the XNA framework only in C#? I'm working on a private project for school, and I'm set on using c++.
Brendan
A: 

If you want to keep it simple, you can use the joystick APIs.

Matteo Italia