summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2016-07-29 17:43:49 +0200
committerGitHub <noreply@github.com>2016-07-29 17:43:49 +0200
commite0cbb9d1ae6f35b4b44a8e1ed99e8a710c36a7d3 (patch)
tree7e0fff192b12dbddbf9c39d133ee433662727fa4 /Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
parentfc85d8036f1bab0963b3a64278f8e4ea157b6dcf (diff)
parent135641404af9c52e433ef28dba4f86fa208f4365 (diff)
Merge pull request #3890 from leoetlino/evdev-hotplug
evdev: Add hotplug support
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/ControllerInterface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
index 2f4212ba85..198a2c180b 100644
--- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
+++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h
@@ -122,12 +122,17 @@ public:
void Reinitialize();
void Shutdown();
void AddDevice(std::shared_ptr<ciface::Core::Device> device);
+ void RemoveDevice(std::function<bool(const ciface::Core::Device*)> callback);
bool IsInit() const { return m_is_init; }
void UpdateReference(ControlReference* control,
const ciface::Core::DeviceQualifier& default_device) const;
void UpdateInput();
+ void RegisterHotplugCallback(std::function<void(void)> callback);
+ void InvokeHotplugCallbacks() const;
+
private:
+ std::vector<std::function<void()>> m_hotplug_callbacks;
bool m_is_init;
void* m_hwnd;
};