Add tap_code function (#3784)
* Add tap_code * formatting * Doc clarification * Rename variable to make more consistent
This commit is contained in:
parent
e885c793bc
commit
26f4e7031a
2 changed files with 5 additions and 0 deletions
|
@ -228,6 +228,10 @@ This sends the `<kc>` keydown event to the computer. Some examples would be `KC_
|
|||
|
||||
Parallel to `register_code` function, this sends the `<kc>` keyup event to the computer. If you don't use this, the key will be held down until it's sent.
|
||||
|
||||
### `tap_code(<kc>);`
|
||||
|
||||
This will send `register_code(<kc>)` and then `unregister_code(<kc>)`. This is useful if you want to send both the press and release events ("tap" the key, rather than hold it).
|
||||
|
||||
### `clear_keyboard();`
|
||||
|
||||
This will clear all mods and keys currently pressed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue