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

@ -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);