diff options
author | Drashna Jael're <drashna@live.com> | 2020-01-14 16:30:29 -0800 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-02-26 10:15:12 +0900 |
commit | e41ab50016345f7813d250772457a1463e0cd973 (patch) | |
tree | 229011a7ba2d273643bf6245241f642b7ba3bda0 /quantum/oryx.h | |
parent | d3f23ecfbcd2a69714422ab68f346e51fcc2a6de (diff) |
Start moving code out of webusb and to Oryx feature
Diffstat (limited to 'quantum/oryx.h')
-rw-r--r-- | quantum/oryx.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/quantum/oryx.h b/quantum/oryx.h new file mode 100644 index 0000000000..eaef5bd335 --- /dev/null +++ b/quantum/oryx.h @@ -0,0 +1,34 @@ +#pragma once + +#include "quantum.h" +#include "webusb.h" + +#ifndef WEBUSB_ENABLE +# error "WebUSB needs to be enabled, please enable it!" +#endif + +#ifndef DYNAMIC_KEYMAP_ENABLE +# error "Dynamic Keymaps are not enabled. It must be aenbled " +#endif + + +enum Oryx_Command_Code { + ORYX_GET_LAYER = WEBUSB_CMD_SAFE_RANGE, + +}; + +enum Oryx_Event_Code { + ORYX_EVT_KEYDOWN = WEBUSB_EVT_SAFE_RANGE, + ORYX_EVT_KEYUP, + ORYX_EVT_LAYER, +}; + + + +extern bool webusb_state_live_training_enabled; + +bool webusb_receive_oryx(uint8_t *data, uint8_t length); +void oryx_layer_event(void); + + +void keyboard_pre_init_oryx(void); |