From 8e6677be90d67a652eb4bcf7d0b76f548e254172 Mon Sep 17 00:00:00 2001 From: Michael M Date: Sat, 4 Nov 2017 07:37:03 -0700 Subject: ControllerInterface: don't call InvokeDevicesChangedCallbacks more than once when refreshing --- Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.h') diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h index b485cda31a..06fd7c544d 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include @@ -57,6 +58,7 @@ private: std::vector> m_devices_changed_callbacks; mutable std::mutex m_callbacks_mutex; bool m_is_init; + std::atomic m_is_populating_devices{false}; void* m_hwnd; }; -- cgit v1.2.3