HIDListenerWinUSB: Enable scanning during poll

This commit is contained in:
Luke Street 2020-04-17 21:46:09 -04:00
parent 42cedb77f0
commit 89e4a18d0b
1 changed files with 2 additions and 0 deletions

View File

@ -219,7 +219,9 @@ class HIDListenerWinUSB final : public IHIDListener {
public: public:
HIDListenerWinUSB(DeviceFinder& finder) : m_finder(finder) { HIDListenerWinUSB(DeviceFinder& finder) : m_finder(finder) {
/* Initial HID Device Add */ /* Initial HID Device Add */
m_scanningEnabled = true;
_pollDevices(nullptr); _pollDevices(nullptr);
m_scanningEnabled = false;
/* XInput arbitration thread */ /* XInput arbitration thread */
for (const DeviceSignature* sig : m_finder.getTypes()) { for (const DeviceSignature* sig : m_finder.getTypes()) {