1
0
Fork 0

Add support for key override introspection. (#24120)

This commit is contained in:
Nick Brassel 2024-07-16 09:22:17 +10:00 committed by GitHub
parent fef8e7195b
commit 8abaa3bc2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 90 additions and 25 deletions

View file

@ -88,3 +88,24 @@ tap_dance_action_t* tap_dance_get_raw(uint16_t tap_dance_idx);
tap_dance_action_t* tap_dance_get(uint16_t tap_dance_idx);
#endif // defined(TAP_DANCE_ENABLE)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Key Overrides
#if defined(KEY_OVERRIDE_ENABLE)
// Forward declaration of key_override_t so we don't need to deal with header reordering
struct key_override_t;
typedef struct key_override_t key_override_t;
// Get the number of key overrides defined in the user's keymap, stored in firmware rather than any other persistent storage
uint16_t key_override_count_raw(void);
// Get the number of key overrides defined in the user's keymap, potentially stored dynamically
uint16_t key_override_count(void);
// Get the key override definitions, stored in firmware rather than any other persistent storage
const key_override_t* key_override_get_raw(uint16_t key_override_idx);
// Get the key override definitions, potentially stored dynamically
const key_override_t* key_override_get(uint16_t key_override_idx);
#endif // defined(KEY_OVERRIDE_ENABLE)