summaryrefslogtreecommitdiffstats
path: root/common/keymap.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-02-25 15:30:37 +0900
committertmk <nobody@nowhere>2013-02-25 15:30:37 +0900
commit23c32d304bcc5146a575e547bba80ee8d86a2856 (patch)
treed7826faa7e6d3648cffa21ae163fe1e369caf384 /common/keymap.c
parent000f3c4c543e0c4490787ccc3a8920d4ee0692ec (diff)
Add MACRO action
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 ddc3210524..f72be57794 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/>.
#include "keycode.h"
#include "layer_switch.h"
#include "action.h"
+#include "action_macro.h"
#include "debug.h"
@@ -39,9 +40,10 @@ action_t action_for_key(uint8_t layer, key_t key)
}
__attribute__ ((weak))
-void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
-{
-}
+const prog_macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { return MACRO_NONE; }
+
+__attribute__ ((weak))
+void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {}
#else
/*
* legacy keymap support