diff options
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp index e28e044866..7b21cf78e0 100644 --- a/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp +++ b/Source/Core/InputCommon/ControllerInterface/MappingCommon.cpp @@ -138,8 +138,8 @@ void RemoveSpuriousTriggerCombinations( { const auto is_spurious = [&](auto& detection) { return std::any_of(detections->begin(), detections->end(), [&](auto& d) { - // This is a suprious digital detection if a "smooth" (analog) detection is temporally near. - return &d != &detection && d.smoothness > 1 && + // This is a spurious digital detection if a "smooth" (analog) detection is temporally near. + return &d != &detection && d.smoothness > 1 && d.smoothness > detection.smoothness && abs(d.press_time - detection.press_time) < SPURIOUS_TRIGGER_COMBO_THRESHOLD; }); }; |
