InputCommon: Use Clock from CommonTypes.

This commit is contained in:
Jordan Woyak 2025-03-02 15:42:26 -06:00
parent 65726b7b5f
commit e217d6c939
4 changed files with 3 additions and 8 deletions

View file

@ -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;