store_or_get_action - cache keycode on key press, return cached keycode on key release (#25349)

Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
Garretonzo
2026-09-10 14:39:53 +10:00
committed by GitHub
co-authored by Nick Brassel
parent f6854c5037
commit bf56a071d2
10 changed files with 454 additions and 1 deletions
+3
View File
@@ -163,6 +163,9 @@ layer_state_t update_tri_layer_state(layer_state_t state, uint8_t layer1, uint8_
void update_source_layers_cache(keypos_t key, uint8_t layer);
uint8_t read_source_layers_cache(keypos_t key);
# ifdef KEYCODE_CACHE_ENABLE
uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key);
# endif
#endif
action_t store_or_get_action(bool pressed, keypos_t key);