Skip to content

Commit

Permalink
[Layer Map] Exclude peeking for mapped features
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed May 18, 2024
1 parent 991a248 commit d3150e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions users/drashna/features/layer_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later

#include "action.h"
#include "keyboard.h"
#include "keymap_common.h"
#include "action_layer.h"
#include "layer_map.h"
Expand Down Expand Up @@ -44,8 +45,14 @@ void populate_layer_map(void) {

bool peek_matrix_layer_map(uint8_t row, uint8_t col) {
#ifdef LAYER_MAP_REMAPPING
if (layer_remap[row][col].row >= KEYLOC_DIP_SWITCH_OFF) {
return false;
}
return peek_matrix(layer_remap[row][col].row, layer_remap[row][col].col, false);
#else
if (row = > KEYLOC_DIP_SWITCH_OFF) {
return false;
}
return peek_matrix(row, col, false);
#endif
}
Expand Down

0 comments on commit d3150e3

Please sign in to comment.