* Use defines to keep either all behaviors with omits, or selective behaviors with explicit kept behavior, before including `behavior.dtsi` in keymaps. * Default ZMK_BEHAVIORS_KEEP_ALL when building with the studio RPC endpoint snippet.
19 lines
349 B
Text
19 lines
349 B
Text
/*
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/behaviors.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
#if ZMK_BEHAVIOR_OMIT(MKP)
|
|
/omit-if-no-ref/
|
|
#endif
|
|
mkp: mouse_key_press {
|
|
compatible = "zmk,behavior-mouse-key-press";
|
|
#binding-cells = <1>;
|
|
};
|
|
};
|
|
};
|