LennartHennigs's tracked open-source repos, sorted by stars.
Arduino/ESP button library that provides callback functions to track single, double, triple and long clicks. It also takes care of debouncing.