mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
u_config_json: Store tracking override pose input name
This commit is contained in:
parent
fa79451858
commit
664c103a3e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue