summaryrefslogtreecommitdiff
path: root/quantum/oryx.h
diff options
context:
space:
mode:
authorDrashna Jael're <drashna@live.com>2020-01-14 17:48:23 -0800
committerFlorian Didron <fdidron@users.noreply.github.com>2020-02-26 10:15:12 +0900
commit5ed3ecdd73913ee484777ab33840f3ece5d3571f (patch)
treefefde0dbeadfa6cbf379e63784fdc5b48c769431 /quantum/oryx.h
parent259cc072029c3358827c7ef6c2462a3d4a6a1f52 (diff)
Add toggle for live training
Diffstat (limited to 'quantum/oryx.h')
-rw-r--r--quantum/oryx.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/quantum/oryx.h b/quantum/oryx.h
index eaef5bd335..13ef72d548 100644
--- a/quantum/oryx.h
+++ b/quantum/oryx.h
@@ -8,12 +8,16 @@
#endif
#ifndef DYNAMIC_KEYMAP_ENABLE
-# error "Dynamic Keymaps are not enabled. It must be aenbled "
+# error "Dynamic Keymaps are not enabled. It must be enabled"
#endif
+// enum Oryx_Status_code {
+// PLACEHOLDER = WEBUSB_STATUS_SAFE_RANGE,
+// }
enum Oryx_Command_Code {
ORYX_GET_LAYER = WEBUSB_CMD_SAFE_RANGE,
+ ORYX_CMD_LIVE_TRAINING,
};
@@ -21,14 +25,15 @@ enum Oryx_Event_Code {
ORYX_EVT_KEYDOWN = WEBUSB_EVT_SAFE_RANGE,
ORYX_EVT_KEYUP,
ORYX_EVT_LAYER,
+ ORYX_EVT_LIVE_TRAINING
};
-extern bool webusb_state_live_training_enabled;
+extern bool oryx_state_live_training_enabled;
bool webusb_receive_oryx(uint8_t *data, uint8_t length);
void oryx_layer_event(void);
-
+bool is_oryx_live_training_enabled(void);
void keyboard_pre_init_oryx(void);