summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-03-11 12:37:44 +0100
committerGitHub <noreply@github.com>2023-03-11 12:37:44 +0100
commit62ff2f1030ae95ac0e5bf9ae02e9cc78664ab83e (patch)
tree14c8c2abdaa0eb4c4dd55b4b8171bd354356b82e /Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
parent7b5c989f2d55796e5d925144d1a2f30bac4521b1 (diff)
parent75fb1a7edfb12f490b08ab0b76a8e2f1536d2d9b (diff)
Merge pull request #11385 from JosJuice/android-input-overhaul
Android input overhaul
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
index 4e46179fc6..222791f03f 100644
--- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp
@@ -242,6 +242,18 @@ std::shared_ptr<Device> DeviceContainer::FindDevice(const DeviceQualifier& devq)
return nullptr;
}
+std::vector<std::shared_ptr<Device>> DeviceContainer::GetAllDevices() const
+{
+ std::lock_guard lk(m_devices_mutex);
+
+ std::vector<std::shared_ptr<Device>> devices;
+
+ for (const auto& d : m_devices)
+ devices.emplace_back(d);
+
+ return devices;
+}
+
std::vector<std::string> DeviceContainer::GetAllDeviceStrings() const
{
std::lock_guard lk(m_devices_mutex);