summaryrefslogtreecommitdiff
path: root/app/dts/bindings
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-06-21 21:43:44 -0400
committerPete Johanson <peter@peterjohanson.com>2020-06-21 21:43:44 -0400
commit223edf05ad08938b066f9187668ebfae43c5e91a (patch)
treee2719b609c701a72b9185b371d3824edf3af8620 /app/dts/bindings
parent7e659851c80bf2819554d93ad9971f56aa5b225b (diff)
Refactor global bindings, implement mod-tap.
* Use extra comptible = "zmk,behavior-global" to add behaviors to global bindings for event notification. * Implement mod-tap, as a keymap binding and global one to skip tap if other keycode pressed while held.
Diffstat (limited to 'app/dts/bindings')
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-mod-tap.yaml8
-rw-r--r--app/dts/bindings/zmk,global-bindings.yaml9
2 files changed, 8 insertions, 9 deletions
diff --git a/app/dts/bindings/behaviors/zmk,behavior-mod-tap.yaml b/app/dts/bindings/behaviors/zmk,behavior-mod-tap.yaml
new file mode 100644
index 0000000..7911082
--- /dev/null
+++ b/app/dts/bindings/behaviors/zmk,behavior-mod-tap.yaml
@@ -0,0 +1,8 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+description: Mod-Tap Beavhior
+
+compatible: "zmk,behavior-mod-tap"
+
+include: two_param.yaml
diff --git a/app/dts/bindings/zmk,global-bindings.yaml b/app/dts/bindings/zmk,global-bindings.yaml
deleted file mode 100644
index 69e79cd..0000000
--- a/app/dts/bindings/zmk,global-bindings.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-description: |
- Specify the the global behaviors bound to state changes
-
-compatible: "zmk,global-bindings"
-
-properties:
- bindings:
- type: phandles
- required: true