#[SOLVED] Mod-Morph: asking help for parameters
1 messages · Page 1 of 1 (latest)
However you can create them using preprocessor macros which would at least look nicer, and allow you to add new ones easier
e.g. (untested)
#define MM_RALT(name, regular_binding, morph_binding) \
name: name { \
compatible = "zmk,behavior-mod-morph"; \
label = ZMK_MACRO_STRINGIFY(MMRA_ ## name); \
#binding-cells = <0>; \
bindings = <&kp regular_binding>, <&kp morph_binding>; \
mods = <(MOD_RALT)>; \
};
/ {
behaviors {
MM_RALT(ralt_a, A, F15)
MM_RALT(ralt_o, O, F16)
};
...
[SOLVED] Mod-Morph: asking help for parameters