Add public getter `is_active`
@ -46,6 +46,10 @@ void Syster::reset(void) {
is_active_ = false;
}
bool Syster::is_active(void) {
return is_active_;
// --- hooks ---
Key Syster::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_state) {
if (!is_active_) {
@ -40,6 +40,8 @@ class Syster : public KaleidoscopePlugin {
void begin(void) final;
static void reset(void);
bool is_active(void);
private:
static char symbol_[SYSTER_MAX_SYMBOL_LENGTH + 1];
static uint8_t symbol_pos_;