summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Device.h
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-11-19 16:53:23 +0100
committerGitHub <noreply@github.com>2017-11-19 16:53:23 +0100
commit38f44b2839d1cb3792f1bf517efe4a092933c43e (patch)
treebc2dad207404addb20dae8ac25d602cc5ebe9366 /Source/Core/InputCommon/ControllerInterface/Device.h
parent80bcc0d58d7d3b39d0e1b7973cbce34d4cf61f4e (diff)
parentc62d83a34b34fe591dca1d3c03354ff915c589f4 (diff)
Merge pull request #4853 from ligfx/always_connected
GCPadEmu: only connected if default device connected
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Device.h b/Source/Core/InputCommon/ControllerInterface/Device.h
index 7b601cc775..5482b93ac0 100644
--- a/Source/Core/InputCommon/ControllerInterface/Device.h
+++ b/Source/Core/InputCommon/ControllerInterface/Device.h
@@ -158,6 +158,8 @@ public:
std::string GetDefaultDeviceString() const;
std::shared_ptr<Device> FindDevice(const DeviceQualifier& devq) const;
+ bool HasConnectedDevice(const DeviceQualifier& qualifier) const;
+
protected:
mutable std::mutex m_devices_mutex;
std::vector<std::shared_ptr<Device>> m_devices;