1
0
Fork 0

[MERGE][Core] Pointing Device Modes (21426)

This commit is contained in:
Drashna Jael're 2024-01-31 14:52:03 -08:00
parent ed6ec8b4f9
commit 1648a63812
Signed by: drashna
GPG key ID: DBA1FD3A860D1B11
22 changed files with 1932 additions and 16 deletions

View file

@ -208,6 +208,7 @@ __attribute__((weak)) uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key
return keycode_at_encodermap_location(layer, key.col, false);
}
#endif // ENCODER_MAP_ENABLE
#ifdef DIP_SWITCH_MAP_ENABLE
else if (key.row == KEYLOC_DIP_SWITCH_ON && key.col < NUM_DIP_SWITCHES) {
return keycode_at_dip_switch_map_location(key.col, true);
@ -216,5 +217,11 @@ __attribute__((weak)) uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key
}
#endif // DIP_SWITCH_MAP_ENABLE
#if defined(POINTING_MODE_MAP_ENABLE)
else if (key.row == KEYLOC_POINTING_MODE && key.col < ((pointing_mode_map_count() << 2) | 0x03)) {
return keycode_at_pointing_mode_map_location(key.col);
}
#endif // defined(POINTING_MODE_MAP_ENABLE)
return KC_NO;
}