diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2025-10-09 08:32:59 +0200 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2025-10-09 08:32:59 +0200 |
| commit | a2b76703a9ed91e86ebbba3e4796525a856e27f2 (patch) | |
| tree | 60072a66d0858b1ae3d4686ddf0ce84e1c4b2331 /qmk/keyboards/sofle_choc/keymaps/custom/star_key.h | |
| parent | 6f07047180a2e6b189200c18cafe5b4ccc9d2997 (diff) | |
Moved the star_key handler in it’s own file
Diffstat (limited to 'qmk/keyboards/sofle_choc/keymaps/custom/star_key.h')
| -rw-r--r-- | qmk/keyboards/sofle_choc/keymaps/custom/star_key.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/qmk/keyboards/sofle_choc/keymaps/custom/star_key.h b/qmk/keyboards/sofle_choc/keymaps/custom/star_key.h index 3b4bb9e..d67228f 100644 --- a/qmk/keyboards/sofle_choc/keymaps/custom/star_key.h +++ b/qmk/keyboards/sofle_choc/keymaps/custom/star_key.h @@ -3,9 +3,10 @@ // Initialize the state. void star_key_init(void); -// Define the new value for the star key -void set_star_key(bool status); - // This code is intended to be called from the master. // Send the star key status to the other side of the keyboard void sync_star_key(void); + +// Handle the keypress, turn the light on until the next press, or revert off +// after a cycle of 3 presses. +void star_key_process_record(uint16_t keycode, keyrecord_t *record); |
