aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/protocol/host.c
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2025-05-11 23:38:48 +0100
committerGitHub <[email protected]>2025-05-12 08:38:48 +1000
commit88c094908bb94324e28876f2beb8028a9fad086d (patch)
tree4e47c513470873b59ac20735bdec99afb903fd5a /tmk_core/protocol/host.c
parentc045c3e00c41597fbc82239376611d3ac8a7a52e (diff)
downloadqmk_firmware-88c094908bb94324e28876f2beb8028a9fad086d.tar.gz
qmk_firmware-88c094908bb94324e28876f2beb8028a9fad086d.zip
Add raw_hid support to host driver (#25255)
Diffstat (limited to 'tmk_core/protocol/host.c')
-rw-r--r--tmk_core/protocol/host.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tmk_core/protocol/host.c b/tmk_core/protocol/host.c
index e785cb24cc..4874d7c1d3 100644
--- a/tmk_core/protocol/host.c
+++ b/tmk_core/protocol/host.c
@@ -55,6 +55,9 @@ host_driver_t bt_driver = {
.send_nkro = bluetooth_send_nkro,
.send_mouse = bluetooth_send_mouse,
.send_extra = bluetooth_send_extra,
+# ifdef RAW_ENABLE
+ .send_raw_hid = bluetooth_send_raw_hid,
+# endif
};
#endif
@@ -299,6 +302,15 @@ void host_programmable_button_send(uint32_t data) {
__attribute__((weak)) void send_programmable_button(report_programmable_button_t *report) {}
+#ifdef RAW_ENABLE
+void host_raw_hid_send(uint8_t *data, uint8_t length) {
+ host_driver_t *driver = host_get_active_driver();
+ if (!driver || !driver->send_raw_hid) return;
+
+ (*driver->send_raw_hid)(data, length);
+}
+#endif
+
uint16_t host_last_system_usage(void) {
return last_system_usage;
}