diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-06-15 17:03:34 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-06-15 17:03:34 -0400 |
commit | 1751470785a110729afc01f3947b406bc40ceb43 (patch) | |
tree | 6764aaafb2856f086b519d966fe525937a3ca511 /app/dts/bindings | |
parent | 0712dadd2953a429de57c9c44aa1f9429112d809 (diff) |
Initial work on keymap transforms for non-standard matrixes.
* Allows "gaps" for keyboards like Kyra.
* Allows keyboards with matrixes that don't map the logical key
locations to have normal looking keymaps when defined.
Diffstat (limited to 'app/dts/bindings')
-rw-r--r-- | app/dts/bindings/zmk,keymap-transform.yaml | 9 | ||||
-rw-r--r-- | app/dts/bindings/zmk,keymap.yaml | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/app/dts/bindings/zmk,keymap-transform.yaml b/app/dts/bindings/zmk,keymap-transform.yaml new file mode 100644 index 0000000..24c3836 --- /dev/null +++ b/app/dts/bindings/zmk,keymap-transform.yaml @@ -0,0 +1,9 @@ +description: | + Defines a mapping from keymap logical positions to matrix physical positions + +compatible: "zmk,keymap-transform" + +properties: + map: + type: array + required: true diff --git a/app/dts/bindings/zmk,keymap.yaml b/app/dts/bindings/zmk,keymap.yaml index 8c56f93..b9517a3 100644 --- a/app/dts/bindings/zmk,keymap.yaml +++ b/app/dts/bindings/zmk,keymap.yaml @@ -4,6 +4,10 @@ description: | compatible: "zmk,keymap" properties: + transform: + type: phandle + required: false + label: type: string required: true |