|
|
@ -136,38 +136,6 @@ void send_keyboard_report(void) {
|
|
|
|
host_keyboard_send(keyboard_report);
|
|
|
|
host_keyboard_send(keyboard_report);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* key */
|
|
|
|
|
|
|
|
void add_key(uint8_t key)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
#ifdef NKRO_ENABLE
|
|
|
|
|
|
|
|
if (keyboard_protocol && keymap_config.nkro) {
|
|
|
|
|
|
|
|
add_key_bit(keyboard_report, key);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
add_key_byte(keyboard_report, key);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void del_key(uint8_t key)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
#ifdef NKRO_ENABLE
|
|
|
|
|
|
|
|
if (keyboard_protocol && keymap_config.nkro) {
|
|
|
|
|
|
|
|
del_key_bit(keyboard_report, key);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
del_key_byte(keyboard_report, key);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void clear_keys(void)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// not clear mods
|
|
|
|
|
|
|
|
for (int8_t i = 1; i < KEYBOARD_REPORT_SIZE; i++) {
|
|
|
|
|
|
|
|
keyboard_report->raw[i] = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* modifier */
|
|
|
|
/* modifier */
|
|
|
|
uint8_t get_mods(void) { return real_mods; }
|
|
|
|
uint8_t get_mods(void) { return real_mods; }
|
|
|
|
void add_mods(uint8_t mods) { real_mods |= mods; }
|
|
|
|
void add_mods(uint8_t mods) { real_mods |= mods; }
|
|
|
|