ControllerInterface: invoke callbacks in AddDevice/RemoveDevice

Some backends already cause this to happen, so make it consistent across
systems.
This commit is contained in:
Michael M 2017-11-09 12:14:21 -08:00
parent 126b7ea01c
commit 7355b5f70d
6 changed files with 47 additions and 30 deletions

View file

@ -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;