summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index ac3e2d90b4..077e7d9d8f 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <ctype.h>
#include "quantum.h"
#ifdef BLUETOOTH_ENABLE
@@ -257,6 +258,9 @@ bool process_record_quantum(keyrecord_t *record) {
#endif
#ifdef HAPTIC_ENABLE
process_haptic(keycode, record) &&
+#endif // HAPTIC_ENABLE
+#ifdef ORYX_ENABLE
+ process_record_oryx(keycode, record) &&
#endif
#if defined(VIA_ENABLE)
process_record_via(keycode, record) &&
@@ -408,6 +412,7 @@ bool process_record_quantum(keyrecord_t *record) {
}
}
+
return process_action_kb(record);
}
@@ -437,6 +442,21 @@ void matrix_scan_quantum() {
matrix_scan_kb();
}
+
+#ifdef WEBUSB_ENABLE
+__attribute__((weak)) bool webusb_receive_user(uint8_t *data, uint8_t length) { return false; }
+__attribute__((weak)) bool webusb_receive_kb(uint8_t *data, uint8_t length) { return webusb_receive_user(data, length); }
+
+bool webusb_receive_quantum(uint8_t *data, uint8_t length) {
+# ifdef ORYX_ENABLE
+ return webusb_receive_oryx(data, length);
+# else
+ return webusb_receive_kb(data, length);
+# endif
+}
+#endif
+
+
//------------------------------------------------------------------------------
// Override these functions in your keymap file to play different tunes on
// different events such as startup and bootloader jump
@@ -445,6 +465,7 @@ __attribute__((weak)) void startup_user() {}
__attribute__((weak)) void shutdown_user() {}
+
void suspend_power_down_quantum(void) {
suspend_power_down_kb();
#ifndef NO_SUSPEND_POWER_DOWN