summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 9a0016b150..4a0cf31592 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
@@ -268,6 +269,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) &&
@@ -448,6 +452,19 @@ 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) {
+ return webusb_receive_kb(data, length);
+}
+#endif
+
//------------------------------------------------------------------------------
// Override these functions in your keymap file to play different tunes on
// different events such as startup and bootloader jump