* For upcoming ZMK studio work, make a set of rich metadata available to provide a friendly name for a behavior, and allow super flexible descriptions of the parameters the behaviors take. * Add ability to validate a zmk_behavior_binding against the behavior metadata available.
19 lines
383 B
Text
19 lines
383 B
Text
/*
|
|
* Copyright (c) 2021 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ key_repeat: key_repeat {
|
|
compatible = "zmk,behavior-key-repeat";
|
|
#binding-cells = <0>;
|
|
usage-pages = <HID_USAGE_KEY>;
|
|
display-name = "Key Repeat";
|
|
};
|
|
};
|
|
};
|
|
|