2021-03-31 18:50:00 +00:00
|
|
|
#include <Figments.h>
|
|
|
|
|
|
|
|
class LogService : public Task {
|
|
|
|
public:
|
2023-02-18 15:33:09 +00:00
|
|
|
LogService() : Task("Logging") {state = Task::Running;}
|
2021-03-31 18:50:00 +00:00
|
|
|
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;
|
|
|
|
};
|