Start a client when a headset connects
This commit is contained in:
committed by
Patrick Nicolas
parent
fb8de394c3
commit
d9ac2b84b5
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user