diff --git a/keyboard/RedScarfIII/keymap_default.c b/keyboard/RedScarfIII/keymap_default.c index 9550633c..569dba47 100644 --- a/keyboard/RedScarfIII/keymap_default.c +++ b/keyboard/RedScarfIII/keymap_default.c @@ -156,3 +156,18 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) } } } + +enum macro_id { + KEYPAD_00 = 0, +}; + +const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) +{ + switch (id) { + case KEYPAD_00: + return (record->event.pressed ? + MACRO( T(P0), T(P0), END ) : + MACRO_NONE ); + } + return MACRO_NONE; +}