Merge branch 'master' into textures

This commit is contained in:
Georg Hagen
2024-07-09 13:44:09 +02:00
5 changed files with 12 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenVulkano::Input
int GestureTap::GetTouchCount() const
{
return std::count_if(m_touchMap.begin(), m_touchMap.end(), [](const auto& t) { return t.second; });
return std::count_if(m_touchMap.begin(), m_touchMap.end(), [](const std::pair<TouchId, bool>& t) { return t.second; });
}
void GestureTap::Cancel()
@@ -84,4 +84,4 @@ namespace OpenVulkano::Input
}
if (!GetTouchCount()) Reset(); // empty map if no touch
}
}
}