Sign in to follow this  
mogumbo

find XBox controller index

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this