diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-06-16 21:52:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 21:52:12 -0400 |
commit | d0a6df9d9ce014f58c3a5a733d66eeccab394dc2 (patch) | |
tree | d67166557e8e60f00a5691346cac36e0345d4b9a /app/include/dt-bindings | |
parent | 766eedebe53c1146ce4ea9db73d659d12e49b53a (diff) | |
parent | 1659562bb75e14476cbf94c0cbe2e536b7c7620a (diff) |
Merge pull request #31 from petejohanson/keymaps/keymap-transform-non-standard-matrix-mapping
Initial work on matrix transforms for non-standard matrixes.
Diffstat (limited to 'app/include/dt-bindings')
-rw-r--r-- | app/include/dt-bindings/zmk/matrix-transform.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/include/dt-bindings/zmk/matrix-transform.h b/app/include/dt-bindings/zmk/matrix-transform.h new file mode 100644 index 0000000..4fd3e6c --- /dev/null +++ b/app/include/dt-bindings/zmk/matrix-transform.h @@ -0,0 +1,5 @@ + +#define KT_ROW(item) (item >> 8) +#define KT_COL(item) (item & 0xFF) + +#define RC(row, col) (((row) << 8) + (col))
\ No newline at end of file |