From ac475cdd8715cbb7b3614685ce07de8922fb76a3 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Fri, 9 Jan 2015 14:50:24 +0900 Subject: [PATCH] Add keypad 00 macro for RedScarfIII --- keyboard/RedScarfIII/keymap_default.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; +}