From 89e4a18d0b6aae80e48d56bbf5eb0ddff0eba802 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Fri, 17 Apr 2020 21:46:09 -0400 Subject: [PATCH] HIDListenerWinUSB: Enable scanning during poll --- lib/inputdev/HIDListenerWinUSB.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/inputdev/HIDListenerWinUSB.cpp b/lib/inputdev/HIDListenerWinUSB.cpp index 9736433..d1c7663 100644 --- a/lib/inputdev/HIDListenerWinUSB.cpp +++ b/lib/inputdev/HIDListenerWinUSB.cpp @@ -219,7 +219,9 @@ class HIDListenerWinUSB final : public IHIDListener { public: HIDListenerWinUSB(DeviceFinder& finder) : m_finder(finder) { /* Initial HID Device Add */ + m_scanningEnabled = true; _pollDevices(nullptr); + m_scanningEnabled = false; /* XInput arbitration thread */ for (const DeviceSignature* sig : m_finder.getTypes()) {