mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
Add hotplug support to DInput and XInput controller backends
This commit is contained in:
@ -92,6 +92,8 @@ void PopulateDevices()
|
||||
if (!hXInput)
|
||||
return;
|
||||
|
||||
g_controller_interface.RemoveDevice([](const auto* dev) { return dev->GetSource() == "XInput"; });
|
||||
|
||||
XINPUT_CAPABILITIES caps;
|
||||
for (int i = 0; i != 4; ++i)
|
||||
if (ERROR_SUCCESS == PXInputGetCapabilities(i, 0, &caps))
|
||||
|
Reference in New Issue
Block a user