1
0
Fork 0

Add consumer/system usage support.

This commit is contained in:
tmk 2012-10-09 13:48:39 +09:00
parent e9af482690
commit 16ba9bda56
5 changed files with 141 additions and 38 deletions

View file

@ -69,6 +69,14 @@ void host_unregister_key(uint8_t key)
host_send_keyboard_report();
}
void host_clear_all_keys_but_mods(void)
{
for (int8_t i = 0; i < REPORT_KEYS; i++) {
keyboard_report->keys[i] = 0;
}
host_send_keyboard_report();
}
/* keyboard report operations */
void host_add_key(uint8_t key)
{