aboutsummaryrefslogtreecommitdiff
path: root/quantum/leader.h
diff options
context:
space:
mode:
authorWill Spooner <106878670+willbsp@users.noreply.github.com>2025-01-02 07:12:58 +0000
committerGitHub <noreply@github.com>2025-01-01 23:12:58 -0800
commitb603094995fad1498204cbabdb47b85e76780446 (patch)
treeb6b0c7fbf979919f84756fb3315696c42b4fb56b /quantum/leader.h
parente016b9b4c5c28b4a0a7ae2fbb7cbe7e090169438 (diff)
Add leader_add_user callback (#24266)
Diffstat (limited to 'quantum/leader.h')
-rw-r--r--quantum/leader.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/quantum/leader.h b/quantum/leader.h
index 3177fcd196..fba6b287ba 100644
--- a/quantum/leader.h
+++ b/quantum/leader.h
@@ -22,6 +22,15 @@ void leader_start_user(void);
void leader_end_user(void);
/**
+ * \brief User callback, invoked when a keycode is added to the leader sequence.
+ *
+ * \param keycode The keycode added to the leader sequence.
+ *
+ * \return `true` to finish the key sequence, `false` to continue.
+ */
+bool leader_add_user(uint16_t keycode);
+
+/**
* Begin the leader sequence, resetting the buffer and timer.
*/
void leader_start(void);