diff options
Diffstat (limited to 'InternalClick.h')
-rw-r--r-- | InternalClick.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/InternalClick.h b/InternalClick.h new file mode 100644 index 0000000..1fffb6c --- /dev/null +++ b/InternalClick.h @@ -0,0 +1,28 @@ +#pragma once + +#include <boost/signals2.hpp> + +#include "config.h" +#include "BPMDetect.h" + +using clock_type = std::chrono::high_resolution_clock; + +// Internally generated +// Configured via: BPM +class InternalClick +{ +public: + InternalClick(Config& config); + + // signals + boost::signals2::signal<void(int64_t)> signal_click; + + // slots + void run_cyclic_50ms(); + +private: + Config& m_config; + + std::chrono::time_point<clock_type> m_timestamp; +}; + |