fix: Fix up layer metadata, move to layer IDs.

* Studio will use stable layer IDs to refer to layers, so that
  layer reordering doesn't affect behavior bindings, so update to match.
* Fix a few layer metadata entries that missed being refactored.
This commit is contained in:
Peter Johanson
2024-07-05 12:56:33 -06:00
committed by Pete Johanson
parent e01f13f9f0
commit 3694ff85a0
5 changed files with 5 additions and 7 deletions

View File

@@ -39,8 +39,7 @@ static int tog_keymap_binding_released(struct zmk_behavior_binding *binding,
static const struct behavior_parameter_value_metadata param_values[] = {
{
.display_name = "Layer",
.type = BEHAVIOR_PARAMETER_VALUE_TYPE_STANDARD,
.standard = BEHAVIOR_PARAMETER_STANDARD_DOMAIN_LAYER_INDEX,
.type = BEHAVIOR_PARAMETER_VALUE_TYPE_LAYER_ID,
},
};