feat(behaviors): Add behavior metadata information.
* 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.
This commit is contained in:
parent
7cdf1e42ea
commit
03099b04b6
42 changed files with 965 additions and 14 deletions
|
|
@ -189,6 +189,9 @@ void behavior_tap_dance_timer_handler(struct k_work *item) {
|
|||
static const struct behavior_driver_api behavior_tap_dance_driver_api = {
|
||||
.binding_pressed = on_tap_dance_binding_pressed,
|
||||
.binding_released = on_tap_dance_binding_released,
|
||||
#if IS_ENABLED(CONFIG_ZMK_BEHAVIOR_METADATA)
|
||||
.get_parameter_metadata = zmk_behavior_get_empty_param_metadata,
|
||||
#endif // IS_ENABLED(CONFIG_ZMK_BEHAVIOR_METADATA)
|
||||
};
|
||||
|
||||
static int tap_dance_position_state_changed_listener(const zmk_event_t *eh);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue