diff options
author | tmk <nobody@nowhere> | 2012-10-09 13:48:39 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-10-17 15:55:37 +0900 |
commit | 16ba9bda5601ebef6e4db04a5ad079af32370815 (patch) | |
tree | a93e18f16ebeb0933263dd6ed9e9e545edeaf367 /common/host.c | |
parent | e9af482690152f1beedbbb915791eccd2d5c22d1 (diff) |
Add consumer/system usage support.
Diffstat (limited to 'common/host.c')
-rw-r--r-- | common/host.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/host.c b/common/host.c index fddd5b6627..0a03807f73 100644 --- a/common/host.c +++ b/common/host.c @@ -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) { |