Allow for keymaps
array to be implemented in a file other than $(KEYMAP_C)
(#17559)
This commit is contained in:
parent
5cad58dfa9
commit
0e5d67145a
4 changed files with 12 additions and 3 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue