summaryrefslogtreecommitdiff
path: root/app/include/zmk/endpoints.h
diff options
context:
space:
mode:
authorJoel Spadin <joelspadin@gmail.com>2020-10-24 16:28:58 -0500
committerJoel Spadin <joelspadin@gmail.com>2020-10-28 18:15:05 -0500
commit600bba25f049b1fa161b2372b2a47762164c7fcd (patch)
treefacbda4a77b0c454233047f8a8d5c264f3a0e3fb /app/include/zmk/endpoints.h
parentb538e605321791568aa25f0bd534ebcb30da92c2 (diff)
feat(endpoints): add preferred endpoint setting
Added a new setting to remember the user's preferred endpoint. When both USB and BLE are connected, the preferred endpoint will be used. Added a new behavior to control this setting. It supports commands: &end END_USB - Prefer USB output &end END_BLE - Prefer BLE output &end END_TOG - Toggle between USB and BLE
Diffstat (limited to 'app/include/zmk/endpoints.h')
-rw-r--r--app/include/zmk/endpoints.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/include/zmk/endpoints.h b/app/include/zmk/endpoints.h
index aad6265..aad688e 100644
--- a/app/include/zmk/endpoints.h
+++ b/app/include/zmk/endpoints.h
@@ -9,4 +9,12 @@
#include <zmk/keys.h>
#include <zmk/hid.h>
+enum zmk_endpoint {
+ ZMK_ENDPOINT_USB,
+ ZMK_ENDPOINT_BLE,
+};
+
+int zmk_endpoints_select(enum zmk_endpoint endpoint);
+int zmk_endpoints_toggle();
+
int zmk_endpoints_send_report(u8_t usage_report);