mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-18 00:01:45 +00:00
InputCommon: Use Clock from CommonTypes.
This commit is contained in:
parent
65726b7b5f
commit
e217d6c939
4 changed files with 3 additions and 8 deletions
|
@ -147,8 +147,7 @@ void RemoveSpuriousTriggerCombinations(Core::InputDetector::Results* detections)
|
|||
std::erase_if(*detections, is_spurious);
|
||||
}
|
||||
|
||||
void RemoveDetectionsAfterTimePoint(Core::InputDetector::Results* results,
|
||||
Core::DeviceContainer::Clock::time_point after)
|
||||
void RemoveDetectionsAfterTimePoint(Core::InputDetector::Results* results, Clock::time_point after)
|
||||
{
|
||||
const auto is_after_time = [&](const Core::InputDetector::Detection& detection) {
|
||||
return detection.release_time.value_or(after) >= after;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue