summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/CoreDevice.h
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-02-15 12:59:23 -0500
committerGitHub <noreply@github.com>2025-02-15 12:59:23 -0500
commita8fae9b82683dd0ea766cb8c282b414707962255 (patch)
tree6ab551bcd3d7ef3459f369bf45206577c60d5231 /Source/Core/InputCommon/ControllerInterface/CoreDevice.h
parentc360ea0d9d5caaa0d305711eb1a86ad30d6353da (diff)
parent6e7e808b6614f98674dba7290bea2ea044c4d5d2 (diff)
Merge pull request #13320 from jordan-woyak/detect-alternations
DolphinQt/Mapping: Add setting to enable waiting for alternate mappings.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/CoreDevice.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h
index 0370fce894..92f53df9fa 100644
--- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h
+++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h
@@ -250,6 +250,7 @@ class InputDetector
{
public:
using Detection = DeviceContainer::InputDetection;
+ using Results = std::vector<Detection>;
InputDetector();
~InputDetector();
@@ -259,16 +260,16 @@ public:
std::chrono::milliseconds maximum_wait);
bool IsComplete() const;
- const std::vector<Detection>& GetResults() const;
+ const Results& GetResults() const;
// move-return'd to prevent copying.
- std::vector<Detection> TakeResults();
+ Results TakeResults();
private:
struct Impl;
Clock::time_point m_start_time;
- std::vector<Detection> m_detections;
+ Results m_detections;
std::unique_ptr<Impl> m_state;
};