From 0d8f913f9dba2cd6481ba20afd456aa719c13b36 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 15 Nov 2018 16:22:16 -0800 Subject: [PATCH] move our externed keymaps definition closer to where it should be. This means we can define ROWS and COLS a bit later in our implementation Signed-off-by: Jesse Vincent --- src/kaleidoscope/key_events.h | 2 -- src/kaleidoscope/layers.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kaleidoscope/key_events.h b/src/kaleidoscope/key_events.h index b346d2f7..705cf1b3 100644 --- a/src/kaleidoscope/key_events.h +++ b/src/kaleidoscope/key_events.h @@ -21,8 +21,6 @@ #include "kaleidoscope/key_defs.h" #include "kaleidoscope/keyswitch_state.h" -extern const Key keymaps[][ROWS][COLS]; - // Code can use this macro on injected key events to signal that // the event isn't tied to a specific physical keyswitch diff --git a/src/kaleidoscope/layers.h b/src/kaleidoscope/layers.h index dad31cb4..db3c29d5 100644 --- a/src/kaleidoscope/layers.h +++ b/src/kaleidoscope/layers.h @@ -20,6 +20,9 @@ #include "kaleidoscope/key_defs.h" #include KALEIDOSCOPE_HARDWARE_H +extern const Key keymaps[][ROWS][COLS]; + + // Macro for defining the keymap. This should be used in the sketch // file (*.ino) to define the keymap[] array that holds the user's // layers. It also computes the number of layers in that keymap.