diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-06-07 15:28:52 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-06-14 16:28:09 -0500 |
| commit | 0780458069abacf9ca1b33c2f4c523f0a8d8bde9 (patch) | |
| tree | fc33d8cee4bff6b938a2b8f58deffc09978699c7 /Source/Core/InputCommon | |
| parent | 11c3f7ea8d8c182fdd9c1a3573db8c94eafb5b46 (diff) | |
InputCommon: Make InputDetector::Start take a span instead of a vector.
Diffstat (limited to 'Source/Core/InputCommon')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp index 5a370cadc8..41ef16c330 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp @@ -391,7 +391,7 @@ InputDetector::InputDetector() : m_start_time{}, m_state{} } void InputDetector::Start(const DeviceContainer& container, - const std::vector<std::string>& device_strings) + std::span<const std::string> device_strings) { m_start_time = Clock::now(); diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h index 5318a102f9..c8be0aeb65 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h @@ -8,6 +8,7 @@ #include <memory> #include <mutex> #include <optional> +#include <span> #include <string> #include <string_view> #include <vector> @@ -255,7 +256,7 @@ public: InputDetector(); ~InputDetector(); - void Start(const DeviceContainer& container, const std::vector<std::string>& device_strings); + void Start(const DeviceContainer& container, std::span<const std::string> device_strings); void Update(std::chrono::milliseconds initial_wait, std::chrono::milliseconds confirmation_wait, std::chrono::milliseconds maximum_wait); bool IsComplete() const; |
