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:
@ -46,6 +46,8 @@ std::string GetDeviceName(const LPDIRECTINPUTDEVICE8 device)
|
||||
|
||||
void PopulateDevices(HWND hwnd)
|
||||
{
|
||||
g_controller_interface.RemoveDevice([](const auto* dev) { return dev->GetSource() == "DInput"; });
|
||||
|
||||
IDirectInput8* idi8;
|
||||
if (FAILED(DirectInput8Create(GetModuleHandle(nullptr), DIRECTINPUT_VERSION, IID_IDirectInput8,
|
||||
(LPVOID*)&idi8, nullptr)))
|
||||
|
Reference in New Issue
Block a user