Fix mod stuck of MODS_KEY when leaving layer #62
- Add action_util.c and remove action_oneshot.c - Add oneshot_mods for MODS_ONESHOT - Add weak_mods for MODS_KEY and MACRO - weak_mods is cleared when layer switching
This commit is contained in:
parent
cb434cfebc
commit
d52d554360
12 changed files with 330 additions and 323 deletions
|
@ -33,7 +33,6 @@ extern bool keyboard_nkro;
|
|||
#endif
|
||||
|
||||
/* report */
|
||||
extern report_keyboard_t *keyboard_report;
|
||||
extern report_mouse_t mouse_report;
|
||||
|
||||
|
||||
|
@ -48,22 +47,6 @@ void host_mouse_send(report_mouse_t *report);
|
|||
void host_system_send(uint16_t data);
|
||||
void host_consumer_send(uint16_t data);
|
||||
|
||||
/* keyboard report utils */
|
||||
void host_add_key(uint8_t key);
|
||||
void host_del_key(uint8_t key);
|
||||
void host_clear_keys(void);
|
||||
|
||||
uint8_t host_get_mods(void);
|
||||
void host_add_mods(uint8_t mods);
|
||||
void host_del_mods(uint8_t mods);
|
||||
void host_set_mods(uint8_t mods);
|
||||
void host_clear_mods(void);
|
||||
|
||||
uint8_t host_has_anykey(void);
|
||||
uint8_t host_has_anymod(void);
|
||||
uint8_t host_get_first_key(void);
|
||||
void host_send_keyboard_report(void);
|
||||
|
||||
/* mouse report utils */
|
||||
uint8_t host_mouse_in_use(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue