summaryrefslogtreecommitdiff
path: root/app/dts/bindings/behaviors
diff options
context:
space:
mode:
authorOkke Formsma <okke@formsma.nl>2020-09-01 14:37:37 +0200
committerOkke Formsma <okke@formsma.nl>2020-09-01 19:41:08 +0200
commitc33931c72c179d19028b2d70ec043cbc3d786137 (patch)
treed3d54fec1fe23b5a8d22491d3d1573abfa5e5ea2 /app/dts/bindings/behaviors
parent4202db5a01e04e2e403941f40aea47a11f668853 (diff)
Initial implementation of hold-tap
Diffstat (limited to 'app/dts/bindings/behaviors')
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-mod-tap.yaml8
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-tap-hold.yaml23
2 files changed, 23 insertions, 8 deletions
diff --git a/app/dts/bindings/behaviors/zmk,behavior-mod-tap.yaml b/app/dts/bindings/behaviors/zmk,behavior-mod-tap.yaml
deleted file mode 100644
index 7911082..0000000
--- a/app/dts/bindings/behaviors/zmk,behavior-mod-tap.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-# 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/behaviors/zmk,behavior-tap-hold.yaml b/app/dts/bindings/behaviors/zmk,behavior-tap-hold.yaml
new file mode 100644
index 0000000..a20578f
--- /dev/null
+++ b/app/dts/bindings/behaviors/zmk,behavior-tap-hold.yaml
@@ -0,0 +1,23 @@
+# Copyright (c) 2020, Cody McGinnis; Okke Formsma
+# SPDX-License-Identifier: MIT
+
+description: Hold or Tap behavior
+
+compatible: "zmk,behavior-hold-tap"
+
+include: two_param.yaml
+
+properties:
+ bindings:
+ type: phandles
+ required: true
+ tapping_term_ms:
+ type: int
+ flavor:
+ type: string
+ required: false
+ default: "hold-preferred"
+ enum:
+ - "hold-preferred"
+ - "balanced"
+ - "tap-preferred" \ No newline at end of file