* Always import mouse keys behavior and their associated listeners. * Tweak listener code to only add listener nodes when listener and the associated input device are enabled.
13 lines
301 B
Text
13 lines
301 B
Text
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ mkp: mouse_key_press {
|
|
compatible = "zmk,behavior-mouse-key-press";
|
|
#binding-cells = <1>;
|
|
};
|
|
};
|
|
|
|
mkp_input_listener: mkp_input_listener {
|
|
compatible = "zmk,input-listener";
|
|
device = <&mkp>;
|
|
};
|
|
};
|