[MERGE][Core] Pointing Device Modes (21426)
This commit is contained in:
parent
ed6ec8b4f9
commit
1648a63812
22 changed files with 1932 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue