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

@@ -99,7 +99,7 @@ static int check_param_matches_value(const struct behavior_parameter_value_metad
}
break;
case BEHAVIOR_PARAMETER_VALUE_TYPE_LAYER_INDEX:
case BEHAVIOR_PARAMETER_VALUE_TYPE_LAYER_ID:
if (param >= 0 && param < ZMK_KEYMAP_LEN) {
return PARAM_MATCHES;
}