X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fergodox%2Fkeymap.c;h=6a1e4d6508ec43c46d6a4e4e5a5112e326d28b34;hb=76c7ebebd7a7b55d2eddabc7bb7978a904f5706f;hp=fb553d09327346899aa49f33fe8482730179c808;hpb=cfc23836e5f9571056d3710b8580c1f27b91ed54;p=max%2Ftmk_keyboard.git diff --git a/keyboard/ergodox/keymap.c b/keyboard/ergodox/keymap.c index fb553d09..6a1e4d65 100644 --- a/keyboard/ergodox/keymap.c +++ b/keyboard/ergodox/keymap.c @@ -20,8 +20,10 @@ along with this program. If not, see . #include #include "keycode.h" #include "action.h" +#include "action_util.h" #include "action_code.h" #include "action_macro.h" +#include "action_layer.h" #include "bootloader.h" #include "report.h" #include "host.h" @@ -79,6 +81,8 @@ along with this program. If not, see . #include "keymap_colemak.h" #elif defined(KEYMAP_WORKMAN) #include "keymap_workman.h" +#elif defined(KEYMAP_MICRO) +#include "keymap_micro.h" #elif defined(KEYMAP_CUB) #include "keymap_cub.h" #else @@ -214,6 +218,11 @@ uint8_t keymap_key_to_keycode(uint8_t layer, key_t key) } } +#if defined(KEYMAP_CUB) + +// function keymap_fn_to_action will be defined in keymap_cub.h + +#else /* translates Fn keycode to action */ action_t keymap_fn_to_action(uint8_t keycode) { @@ -225,4 +234,5 @@ action_t keymap_fn_to_action(uint8_t keycode) } return action; } +#endif