Add support for key override introspection. (#24120)
This commit is contained in:
parent
fef8e7195b
commit
8abaa3bc2d
6 changed files with 90 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue