u_config_json: Store tracking override pose input name

This commit is contained in:
Christoph Haag 2021-03-31 02:04:33 +02:00
parent fa79451858
commit 664c103a3e

View file

@ -22,6 +22,8 @@
#include <string.h>
#include <sys/stat.h>
#include "bindings/b_generated_bindings.h"
DEBUG_GET_ONCE_OPTION(active_config, "P_OVERRIDE_ACTIVE_CONFIG", NULL)
#define CONFIG_FILE_NAME "config_v0.json"
@ -463,6 +465,9 @@ u_config_json_save_overrides(struct u_config_json *json, struct xrt_tracking_ove
cJSON_AddItemToObject(entry, "offset", make_pose(&overrides[i].offset));
const char *input_name_string = xrt_input_name_string(overrides[i].input_name);
cJSON_AddStringToObject(entry, "xrt_input_name", input_name_string);
cJSON_AddItemToArray(o, entry);
}