Update the live composite keymap too at setup time

We want to start with a pre-cached state, so we have both less work to do when
keys are first pressed, and so that plugins that rely on the live composite
state will work reliably too.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/182/head
Gergely Nagy 7 years ago
parent 96a8fa6c9e
commit 580f945270

@ -19,6 +19,11 @@ Kaleidoscope_::setup(void) {
// Update the keymap cache, so we start with a non-empty state.
Layer.updateActiveLayers();
for (byte row = 0; row < ROWS; row++) {
for (byte col = 0; col < COLS; col++) {
Layer.updateLiveCompositeKeymap(row, col);
}
}
}
void

Loading…
Cancel
Save