Multiple devices with same VID/PID
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? :-)