|
|
|
@ -19,7 +19,7 @@ typedef uint8_t macro_t;
|
|
|
|
|
|
|
|
|
|
#define MACRO_NONE 0
|
|
|
|
|
#define MACRO(...) ({static const macro_t __m[] PROGMEM = { __VA_ARGS__, MACRO_ACTION_END }; &__m[0]; })
|
|
|
|
|
#define MACRODOWN(...) (key_toggled_on(keyState) ? MACRO(__VA_ARGS__) : MACRO_NONE)
|
|
|
|
|
#define MACRODOWN(...) (keyToggledOn(keyState) ? MACRO(__VA_ARGS__) : MACRO_NONE)
|
|
|
|
|
|
|
|
|
|
#define I(n) MACRO_ACTION_STEP_INTERVAL, n
|
|
|
|
|
#define W(n) MACRO_ACTION_STEP_WAIT, n
|
|
|
|
|