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
|
@ -55,7 +55,7 @@ typedef enum {
|
|||
} ko_option_t;
|
||||
|
||||
/** Defines a single key override */
|
||||
typedef struct {
|
||||
typedef struct key_override_t {
|
||||
// The non-modifier keycode that triggers the override. This keycode, and the necessary modifiers (trigger_mods) must be pressed to activate this override. Set this to the keycode of the key that should activate the override. Set to KC_NO to require only the necessary modifiers to be pressed and no non-modifier.
|
||||
uint16_t trigger;
|
||||
|
||||
|
@ -87,9 +87,6 @@ typedef struct {
|
|||
bool *enabled;
|
||||
} key_override_t;
|
||||
|
||||
/** Define this as a null-terminated array of pointers to key overrides. These key overrides will be used by qmk. */
|
||||
extern const key_override_t **key_overrides;
|
||||
|
||||
/** Turns key overrides on */
|
||||
void key_override_on(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue