diff --git a/quantum/oryx.c b/quantum/oryx.c index 8e80bde6cbe0..c6fed402af08 100644 --- a/quantum/oryx.c +++ b/quantum/oryx.c @@ -48,6 +48,13 @@ void toggle_smart_layer(void) { raw_hid_send(event, sizeof(event)); } +void trigger_smart_layer(void) { + uint8_t event[RAW_EPSIZE]; + event[0] = ORYX_EVT_TRIGGER_SMART_LAYER; + event[1] = ORYX_STOP_BIT; + raw_hid_send(event, sizeof(event)); +} + void raw_hid_receive(uint8_t *data, uint8_t length) { uint8_t command = data[0]; uint8_t *param = &data[1]; diff --git a/quantum/oryx.h b/quantum/oryx.h index 454f09a550d1..314bbc35ecc2 100644 --- a/quantum/oryx.h +++ b/quantum/oryx.h @@ -48,6 +48,7 @@ enum Oryx_Event_Code { ORYX_EVT_KEYUP, ORYX_EVT_RGB_CONTROL, ORYX_EVT_TOGGLE_SMART_LAYER, + ORYX_EVT_TRIGGER_SMART_LAYER, ORYX_EVT_GET_PROTOCOL_VERSION = 0XFE, ORYX_EVT_ERROR = 0xFF, }; @@ -75,6 +76,7 @@ void oryx_error(uint8_t code); void pairing_failed_event(void); void pairing_succesful_event(void); void toggle_smart_layer(void); +void trigger_smart_layer(void); void oryx_layer_event(void); bool process_record_oryx(uint16_t keycode, keyrecord_t* record);