Add dynamic keymap config
This commit is contained in:
committed by
Jeremy Soller
parent
fc2c3511d2
commit
916a6f87f3
@ -125,6 +125,8 @@ static uint8_t kbscan_get_real_keys(int row, uint8_t rowdata) {
|
||||
// Remove any "active" blanks from the matrix.
|
||||
uint8_t realdata = 0;
|
||||
for (uint8_t col = 0; col < KM_IN; col++) {
|
||||
// This tests the default keymap intentionally, to avoid blanks in the
|
||||
// dynamic keymap
|
||||
if (KEYMAP[0][row][col] && (rowdata & (1 << col))) {
|
||||
realdata |= 1 << col;
|
||||
}
|
||||
@ -349,9 +351,7 @@ void kbscan_event(void) {
|
||||
}
|
||||
uint8_t key_layer = kbscan_last_layer[i][j];
|
||||
uint16_t key = 0;
|
||||
if (key_layer < KM_LAY) {;
|
||||
key = KEYMAP[key_layer][i][j];
|
||||
}
|
||||
keymap_get(key_layer, i, j, &key);
|
||||
if (key) {
|
||||
DEBUG("KB %d, %d, %d = 0x%04X, %d\n", i, j, key_layer, key, new_b);
|
||||
if(!kbscan_press(key, new_b, &layer)){
|
||||
|
Reference in New Issue
Block a user