Jump to content
  • Advertisement
Sign in to follow this  
mogumbo

find XBox controller index

This topic is 1825 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

You can enumerate all your devices using IDirectInput8::EnumDevices : http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.idirectinput8.idirectinput8.enumdevices%28v=vs.85%29.aspx

 

An then there is code here for finding out which devices are XInput devices (XBox controllers): http://msdn.microsoft.com/en-us/library/windows/desktop/ee417014%28v=vs.85%29.aspx

 

But I don't see any way to know which index (0 to 3) is associated with each XBox controller that is enumerated. Does anyone know how to do this?

 

This question has been asked before, but I didn't find a final answer. Here's one thread: http://www.gamedev.net/topic/503988-xbox-controller-index/

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!