Switch the layer repeating behaviour

Switch from the masking behaviour to repeating the symbol the key had when first
pressed.

This - along with the previous changes - fixes #158.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/159/head
Gergely Nagy 7 years ago
parent f0c1c35e8f
commit 5ccdfcf6c7

@ -6,7 +6,7 @@ static uint32_t LayerState;
uint8_t Layer_::highestLayer; uint8_t Layer_::highestLayer;
Key Layer_::keyMap[ROWS][COLS]; Key Layer_::keyMap[ROWS][COLS];
Key(*Layer_::getKey)(uint8_t layer, byte row, byte col) = Layer.getKeyFromPROGMEM; Key(*Layer_::getKey)(uint8_t layer, byte row, byte col) = Layer.getKeyFromPROGMEM;
bool Layer_::repeat_first_press = false; bool Layer_::repeat_first_press = true;
static void handleKeymapKeyswitchEvent(Key keymapEntry, uint8_t keyState) { static void handleKeymapKeyswitchEvent(Key keymapEntry, uint8_t keyState) {
if (keymapEntry.keyCode >= MOMENTARY_OFFSET) { if (keymapEntry.keyCode >= MOMENTARY_OFFSET) {

Loading…
Cancel
Save