X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fergodox%2Fkeymap.c;h=6a1e4d6508ec43c46d6a4e4e5a5112e326d28b34;hb=5d8b9cb1c63b3a489e523808639d606df803de51;hp=a827f36a1d22a3759d8b96fcfa446eba4e66386c;hpb=57c6b597ead6a98ddaade97d66de55928a4fb2a2;p=max%2Ftmk_keyboard.git diff --git a/keyboard/ergodox/keymap.c b/keyboard/ergodox/keymap.c index a827f36a..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" @@ -216,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) { @@ -227,4 +234,5 @@ action_t keymap_fn_to_action(uint8_t keycode) } return action; } +#endif