diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-02-15 12:59:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-15 12:59:23 -0500 |
| commit | a8fae9b82683dd0ea766cb8c282b414707962255 (patch) | |
| tree | 6ab551bcd3d7ef3459f369bf45206577c60d5231 /Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | |
| parent | c360ea0d9d5caaa0d305711eb1a86ad30d6353da (diff) | |
| parent | 6e7e808b6614f98674dba7290bea2ea044c4d5d2 (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.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp index b9141658e6..3a29d4c98f 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.cpp @@ -491,7 +491,7 @@ void InputDetector::Update(std::chrono::milliseconds initial_wait, Detection new_detection; new_detection.device = device_state.device; new_detection.input = input_state.input; - new_detection.press_time = Clock::now(); + new_detection.press_time = now; new_detection.smoothness = smoothness; // We found an input. Add it to our detections. @@ -516,12 +516,12 @@ bool InputDetector::IsComplete() const return !m_state; } -auto InputDetector::GetResults() const -> const std::vector<Detection>& +auto InputDetector::GetResults() const -> const Results& { return m_detections; } -auto InputDetector::TakeResults() -> std::vector<Detection> +auto InputDetector::TakeResults() -> Results { return std::move(m_detections); } |
