Dolphin, the GameCube and Wii emulator - Forums

Full Version: Auto rescan joypads when hardware is plugged in?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
PRs welcome Wink

I did the ground work for hotplugging support one year ago, and also implemented it for evdev (on Linux). Someone implemented it for macOS. Windows support is missing because no one has worked on it.