diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-01-29 02:02:46 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-02-01 01:54:10 -0600 |
| commit | 6e7e808b6614f98674dba7290bea2ea044c4d5d2 (patch) | |
| tree | 1057bab0dbecfea831f2532f0756de8695851e9d /Source/Core/InputCommon/ControllerInterface/CoreDevice.h | |
| parent | cd3993708f25ecbfb62eea9cdd8279bc002a01d1 (diff) | |
DolphinQt/Mapping: Add setting to enable waiting for alternate mappings
using the OR-operator.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.h | 7 |
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; }; |
