Okay, so I've downloaded the source code, and started writing some code.
So far, I have some working code that registers device notifications for HID devices, mice, and keyboards, and also the windows message handler code that executes when such a device is plugged in.
I've tested it by plugging in the one device I had sitting around (Steam Controller Receiver), and the handler code is getting called when it's plugged in.
I haven't tried bluetooth devices yet.
Just a few more questions...
Do we need to detect the Mayflash GC adapter getting plugged in during run time? I don't know its device class GUID, but could probably find it out later.
What about other kinds of USB devices that would get passed on to Dolphin?
Do we need to handle devices getting removed too?
Do we need an added delay before triggering a joystick rescan?
Then finally...
What do I actually do after the device has been plugged in to perform a joystick rescan? What function do I call?
So far, I have some working code that registers device notifications for HID devices, mice, and keyboards, and also the windows message handler code that executes when such a device is plugged in.
I've tested it by plugging in the one device I had sitting around (Steam Controller Receiver), and the handler code is getting called when it's plugged in.
I haven't tried bluetooth devices yet.
Just a few more questions...
Do we need to detect the Mayflash GC adapter getting plugged in during run time? I don't know its device class GUID, but could probably find it out later.
What about other kinds of USB devices that would get passed on to Dolphin?
Do we need to handle devices getting removed too?
Do we need an added delay before triggering a joystick rescan?
Then finally...
What do I actually do after the device has been plugged in to perform a joystick rescan? What function do I call?