Files
keyboard/patches/app_focus_intercept.patch

16 lines
439 B
Diff

--- a/keyboards/system76/system76_ec.c
+++ b/keyboards/system76/system76_ec.c
@@ -1,3 +1,4 @@
+#include "app_focus.h"
/*
* Copyright (C) 2023 System76
* Copyright (C) 2021 Jimmy Cassis <KernelOops@outlook.com>
@@ -278,6 +279,7 @@
}
void raw_hid_receive(uint8_t *data, uint8_t length) {
+ if (app_focus_raw_hid_intercept(data, length)) return;
// Error response by default, set to success by commands
data[1] = 1;