mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-14 23:01:03 +02:00
DolphinQt/Mapping: Add setting to enable waiting for alternate mappings
using the OR-operator.
This commit is contained in:
1 parent
cd3993708f
commit
6e7e808b66
7 files changed
+93
-46
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user