diff options
author | Nick Brassel <nick@tzarc.org> | 2022-07-05 08:58:35 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 08:58:35 +1000 |
commit | 0e5d67145a649480fd49a72712997feb6303a471 (patch) | |
tree | e8d4090768c2612fa77c3d508bc7af998b5d96b0 /quantum/keymap_introspection.c | |
parent | 5cad58dfa960c9463ee5835de131b8fcb2d446e4 (diff) |
Allow for `keymaps` array to be implemented in a file other than `$(KEYMAP_C)` (#17559)
Diffstat (limited to 'quantum/keymap_introspection.c')
-rw-r--r-- | quantum/keymap_introspection.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/quantum/keymap_introspection.c b/quantum/keymap_introspection.c index 9628b41eef..7a96f802ef 100644 --- a/quantum/keymap_introspection.c +++ b/quantum/keymap_introspection.c @@ -4,6 +4,11 @@ // Pull the actual keymap code so that we can inspect stuff from it #include KEYMAP_C +// Allow for keymap or userspace rules.mk to specify an alternate location for the keymap array +#ifdef INTROSPECTION_KEYMAP_C +# include INTROSPECTION_KEYMAP_C +#endif // INTROSPECTION_KEYMAP_C + #include "keymap_introspection.h" #define NUM_KEYMAP_LAYERS ((uint8_t)(sizeof(keymaps) / ((MATRIX_ROWS) * (MATRIX_COLS) * sizeof(uint16_t)))) |