On Windows, top level windows receive the WM_DEVICECHANGE message with wParam = DBT_DEVICEARRIVAL to get notified that hardware has been plugged in. From there, you can also find out what type of device was plugged in.
In QT, it's possible to handle native windows messages with QAbstractNativeEventFilter, so you can do this stuff even if you don't have a standard Win32 message loop.
Dolphin already has a rescan feature in the controller config dialog.
Put these together, and I'd get to connect my joypad after starting Dolphin and realizing it wasn't already connected.
In QT, it's possible to handle native windows messages with QAbstractNativeEventFilter, so you can do this stuff even if you don't have a standard Win32 message loop.
Dolphin already has a rescan feature in the controller config dialog.
Put these together, and I'd get to connect my joypad after starting Dolphin and realizing it wasn't already connected.