Merge pull request #2 from ilianaw/is-active

Add public getter `is_active`
pull/389/head
Gergely Nagy 7 years ago committed by GitHub
commit f4ffac57f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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