renderbug-cpp/src/LogService.h
Torrie Fischer 2848c8ad12
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
figments: figment: redefine task startup state semantics
2023-02-18 16:33:09 +01:00

17 lines
443 B
C++

#include <Figments.h>
class LogService : public Task {
public:
LogService() : Task("Logging") {state = Task::Running;}
void handleEvent(const InputEvent& event) override;
void loop() override {}
static const char* intentName(InputEvent::Intent intent);
static const char* eventValue(const InputEvent& evt);
private:
static char s_valueBuf[255];
uint16_t m_duplicateEvents = 0;
InputEvent m_lastEvent;
};