Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple devices with same VID/PID #28

Open
ghost opened this issue May 19, 2017 · 0 comments
Open

Multiple devices with same VID/PID #28

ghost opened this issue May 19, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented May 19, 2017

Hi!

I'm having an issue when connecting 2 DInput gamepads of the same model simultaniously. Depending on what order I connect them, sometimes only one of them will work. And in that case the working one will be initiated 2 times. So in your test application this means pressing button 0 on joypad #1 causes this output:

Controller button 0 pressed (USB 2A8K GamePad)
Controller button 0 pressed (USB 2A8K GamePad)
Controller button 0 released (USB 2A8K GamePad)
Controller button 0 released (USB 2A8K GamePad)

But pressing the same button on joypad #2 doesn't render any output at all.

This problem traces back to the way DInput genrates GUID's. There seems to be a bug when connecting several gamepads of the same model, so that depending on the order of connection sometimes DInput will actually change GUID of certain controllers. I've tried really hard to find a workaround for this but havn't come up with something. Do you have any ideas? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants