summaryrefslogtreecommitdiff
path: root/src/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers.c')
-rw-r--r--src/handlers.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/handlers.c b/src/handlers.c
index 0ab93f6..b73c92c 100644
--- a/src/handlers.c
+++ b/src/handlers.c
@@ -1,8 +1,7 @@
-#include "handlers.h"
-
-#include "ble.h"
-#include "endpoints.h"
+#include <zmk/ble.h>
+#include <zmk/handlers.h>
+#include <zmk/endpoints.h>
__attribute__((weak)) bool zmk_handle_key_user(struct zmk_key_event *key_event)
{
@@ -16,10 +15,12 @@ void zmk_handle_key(struct zmk_key_event key_event)
return;
}
+#ifdef CONFIG_ZMK_BLE
if (!zmk_ble_handle_key_user(&key_event))
{
return;
}
+#endif /* CONFIG_ZMK_BLE */
zmk_endpoints_send_key_event(key_event);
};