Add public getter `is_active`

pull/389/head
Iliana Weller 7 years ago
parent 9694ce9221
commit 33717489b5
No known key found for this signature in database
GPG Key ID: DCE341C8E949BC81

@ -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_;

Loading…
Cancel
Save