diff options
| author | Michael M <mchtly@gmail.com> | 2017-11-09 12:14:21 -0800 |
|---|---|---|
| committer | Michael M <mchtly@gmail.com> | 2017-11-10 13:37:41 -0800 |
| commit | 7355b5f70d2bdf68c356873f2311025a81c7972a (patch) | |
| tree | 248e15120149e7077dcdcc3eb1b2acdd2e275815 /Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | |
| parent | 126b7ea01caa6fd4eb884cda053ebb938f156c7f (diff) | |
ControllerInterface: invoke callbacks in AddDevice/RemoveDevice
Some backends already cause this to happen, so make it consistent across
systems.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h index 23afab7d67..eb94a8de67 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h @@ -54,9 +54,10 @@ public: void UpdateInput(); void RegisterHotplugCallback(std::function<void(void)> callback); - void InvokeHotplugCallbacks() const; private: + void InvokeHotplugCallbacks() const; + std::vector<std::function<void()>> m_hotplug_callbacks; bool m_is_init; void* m_hwnd; |
