diff options
| author | Michael M <mchtly@gmail.com> | 2017-11-10 12:30:37 -0800 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-29 08:01:40 -0500 |
| commit | d26c1ce24d9108114d7eab97cfc2ab4f3eea28ee (patch) | |
| tree | 8bbc9de32bfea224eb11c33076996f56b4e9925a /Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp | |
| parent | 92ca6e124e82f63b61982a5ecfb26ca818f2fe47 (diff) | |
Add hotplug support to DInput and XInput controller backends
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp b/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp index 8c518335a0..f3e984d897 100644 --- a/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp +++ b/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp @@ -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)) |
