feat(endpoints): clear HID report on endpoint change
This prevents stuck keys when switching endpoints by clearing everything in the HID report and sending one last report before switching to the new endpoint.
This commit is contained in:
parent
1d369ffa73
commit
8f666cecc9
3 changed files with 17 additions and 1 deletions
|
|
@ -165,9 +165,11 @@ int zmk_hid_register_mods(zmk_mod_flags modifiers);
|
|||
int zmk_hid_unregister_mods(zmk_mod_flags modifiers);
|
||||
int zmk_hid_keypad_press(zmk_key key);
|
||||
int zmk_hid_keypad_release(zmk_key key);
|
||||
void zmk_hid_keypad_clear();
|
||||
|
||||
int zmk_hid_consumer_press(zmk_key key);
|
||||
int zmk_hid_consumer_release(zmk_key key);
|
||||
void zmk_hid_consumer_clear();
|
||||
|
||||
struct zmk_hid_keypad_report *zmk_hid_get_keypad_report();
|
||||
struct zmk_hid_consumer_report *zmk_hid_get_consumer_report();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue