summaryrefslogtreecommitdiffstats
path: root/quantum/keymap_introspection.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2022-07-05 08:58:35 +1000
committerGitHub <noreply@github.com>2022-07-05 08:58:35 +1000
commit0e5d67145a649480fd49a72712997feb6303a471 (patch)
treee8d4090768c2612fa77c3d508bc7af998b5d96b0 /quantum/keymap_introspection.c
parent5cad58dfa960c9463ee5835de131b8fcb2d446e4 (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.c5
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))))