1
0
Fork 0

Add leader_add_user callback (#24266)

This commit is contained in:
Will Spooner 2025-01-02 07:12:58 +00:00 committed by GitHub
parent e016b9b4c5
commit b603094995
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 0 deletions

View file

@ -154,6 +154,21 @@ User callback, invoked when the leader sequence ends.
---
### `bool leader_add_user(uint16_t keycode)` {#api-leader-add-user}
User callback, invoked when a keycode is added to the leader sequence.
#### Arguments {#api-leader-add-user-arguments}
- `uint16_t keycode`
The keycode to added to the leader sequence.
#### Return Value {#api-leader-add-user-return}
`true` to finish the key sequence, `false` to continue.
---
### `void leader_start(void)` {#api-leader-start}
Begin the leader sequence, resetting the buffer and timer.