summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorFlorian Didron <0x6664@hey.com>2022-06-21 16:54:29 +0900
committerFlorian Didron <0x6664@hey.com>2022-06-21 16:54:29 +0900
commit939bcc54225c54d6f698e2d8d4a395163a837a1d (patch)
tree6afc028145d531ff997c89e73f4c7f33f4d08a95 /quantum
parent0cb81b76f88539ebe3f32f4e921eae5798dceac2 (diff)
feat: adds layer switch command
Diffstat (limited to 'quantum')
-rw-r--r--quantum/oryx.c7
-rw-r--r--quantum/oryx.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/quantum/oryx.c b/quantum/oryx.c
index c828931e72..080846b38f 100644
--- a/quantum/oryx.c
+++ b/quantum/oryx.c
@@ -42,6 +42,13 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
}
pairing_validate_eeprom_handler();
break;
+
+ case ORYX_SET_LAYER:
+ if(rawhid_state.paired == true) {
+ layer_clear();
+ layer_on(param[0]);
+ }
+ break;
}
}
diff --git a/quantum/oryx.h b/quantum/oryx.h
index e7659fff27..1deae0765d 100644
--- a/quantum/oryx.h
+++ b/quantum/oryx.h
@@ -22,7 +22,7 @@ enum Oryx_Command_Code {
ORYX_CMD_PAIRING_INIT,
ORYX_CMD_PAIRING_VALIDATE,
ORYX_CMD_DISCONNECT,
- ORYX_GET_LAYER,
+ ORYX_SET_LAYER
};
enum Oryx_Event_Code {