Start a client when a headset connects

This commit is contained in:
Guillaume Meunier
2022-12-17 20:12:47 +01:00
committed by Patrick Nicolas
parent fb8de394c3
commit d9ac2b84b5
3 changed files with 111 additions and 22 deletions
+8
View File
@@ -99,6 +99,14 @@ configuration configuration::read_user_configuration()
result.encoders.push_back(e);
}
}
if (json.contains("application"))
{
if (json["application"].is_string())
result.application.push_back(json["application"]);
else
result.application = json["application"];
}
}
catch (const std::exception & e)
{
+1
View File
@@ -43,6 +43,7 @@ struct configuration
std::vector<encoder> encoders;
std::optional<std::array<double, 2>> scale;
std::vector<std::string> application;
static configuration read_user_configuration();
};