2021-03-31 18:50:00 +00:00
|
|
|
#include <Figments.h>
|
|
|
|
|
|
|
|
class LogService : public Task {
|
|
|
|
public:
|
|
|
|
LogService() : Task("Logging") {}
|
|
|
|
void handleEvent(const InputEvent& event) override;
|
|
|
|
void loop() override {}
|
|
|
|
|
2022-06-11 09:02:27 +00:00
|
|
|
static const char* intentName(InputEvent::Intent intent);
|
|
|
|
static const char* eventValue(const InputEvent& evt);
|
|
|
|
|
2021-03-31 18:50:00 +00:00
|
|
|
private:
|
2022-06-11 09:02:27 +00:00
|
|
|
static char s_valueBuf[255];
|
2021-03-31 18:50:00 +00:00
|
|
|
uint16_t m_duplicateEvents = 0;
|
|
|
|
InputEvent m_lastEvent;
|
|
|
|
};
|