aboutsummaryrefslogtreecommitdiff
path: root/common/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/keymap.c')
-rw-r--r--common/keymap.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/keymap.c b/common/keymap.c
index ddc321052..f72be5779 100644
--- a/common/keymap.c
+++ b/common/keymap.c
@@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
20#include "keycode.h" 20#include "keycode.h"
21#include "layer_switch.h" 21#include "layer_switch.h"
22#include "action.h" 22#include "action.h"
23#include "action_macro.h"
23#include "debug.h" 24#include "debug.h"
24 25
25 26
@@ -39,9 +40,10 @@ action_t action_for_key(uint8_t layer, key_t key)
39} 40}
40 41
41__attribute__ ((weak)) 42__attribute__ ((weak))
42void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) 43const prog_macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { return MACRO_NONE; }
43{ 44
44} 45__attribute__ ((weak))
46void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {}
45#else 47#else
46/* 48/*
47 * legacy keymap support 49 * legacy keymap support