aboutsummaryrefslogtreecommitdiff
path: root/qmk/keyboards/sofle_choc/keymaps/custom/star_key.h
diff options
context:
space:
mode:
Diffstat (limited to 'qmk/keyboards/sofle_choc/keymaps/custom/star_key.h')
-rw-r--r--qmk/keyboards/sofle_choc/keymaps/custom/star_key.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/qmk/keyboards/sofle_choc/keymaps/custom/star_key.h b/qmk/keyboards/sofle_choc/keymaps/custom/star_key.h
new file mode 100644
index 0000000..a91d0a3
--- /dev/null
+++ b/qmk/keyboards/sofle_choc/keymaps/custom/star_key.h
@@ -0,0 +1,14 @@
+#pragma once
+#include QMK_KEYBOARD_H
+#include "action.h"
+
+// Initialize the state.
+void star_key_init(void);
+
+// 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);