]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - common/keymap.c
Add KEYCONF to eeconfig.c
[max/tmk_keyboard.git] / common / keymap.c
index ddc321052479756f2b0ec3333966048ced9568e3..aa8d944a79301f400ee1e3b24de0d7c1b8a8c2d1 100644 (file)
@@ -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"
 
 
@@ -37,11 +38,6 @@ action_t action_for_key(uint8_t layer, key_t key)
             return keycode_to_action(keycode);
     }
 }
-
-__attribute__ ((weak))
-void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
-{
-}
 #else
 /* 
  * legacy keymap support
@@ -69,13 +65,17 @@ action_t action_for_key(uint8_t layer, key_t key)
             return keycode_to_action(keycode);
     }
 }
-/* not used for legacy keymap */
-void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
-{
-}
 #endif
 
 
+__attribute__ ((weak))
+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) {}
+
+
+
 
 /* translates keycode to action */
 static action_t keycode_to_action(uint8_t keycode)