Jump to content
  • Advertisement
Sign in to follow this  

find XBox controller index

This topic is 2165 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
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!