feat: Add more predefined behaviors

Adds predefined kt_on, kt_off, tog_on, tog_off, ktap behaviors.
This commit is contained in:
Nicolas Munnich
2025-05-14 21:22:07 +00:00
parent ada1542940
commit a05f5699dd
4 changed files with 61 additions and 10 deletions

View File

@@ -0,0 +1,21 @@
/*
* Copyright (c) 2025 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <dt-bindings/zmk/behaviors.h>
/ {
behaviors {
#if ZMK_BEHAVIOR_OMIT(KTAP)
/omit-if-no-ref/
#endif
ktap: key_tap {
compatible = "zmk,behavior-macro-one-param";
#binding-cells = <1>;
display-name = "Key Tap";
bindings = <&macro_param_1to1>, <&kp MACRO_PLACEHOLDER>;
};
};
};