From 6c1cc7bd2c2f07af6fea99970f11604a57aceb3c Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Mon, 17 Dec 2018 10:46:15 -0600 Subject: [PATCH] Added alternate method to update live_composite_keymap_ This adds a new version of `updateLiveCompositeKeymap()` which takes three parameters: row, column, and a `Key` value. Instead of looking up the value to update in the key map, it just updates `live_composite_keymap_` with the specified `Key` value. Signed-off-by: Michael Richters --- src/kaleidoscope/layers.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kaleidoscope/layers.h b/src/kaleidoscope/layers.h index 587a5e5a..74b970b2 100644 --- a/src/kaleidoscope/layers.h +++ b/src/kaleidoscope/layers.h @@ -99,6 +99,9 @@ class Layer_ { static Key getKeyFromPROGMEM(uint8_t layer, byte row, byte col); static void updateLiveCompositeKeymap(byte row, byte col); + static void updateLiveCompositeKeymap(byte row, byte col, Key mappedKey) { + live_composite_keymap_[row][col] = mappedKey; + } static void updateActiveLayers(void); private: