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
This commit is contained in:
Joel Spadin
2020-10-24 16:28:58 -05:00
parent b538e60532
commit 600bba25f0
10 changed files with 239 additions and 19 deletions

View File

@@ -0,0 +1,10 @@
#
# Copyright (c) 2020, The ZMK Contributors
# SPDX-License-Identifier: MIT
#
description: Endpoints Behavior
compatible: "zmk,behavior-endpoints"
include: one_param.yaml