Send the model name to the server when connecting
This commit is contained in:
committed by
Patrick Nicolas
parent
eca446db78
commit
a931b0b2ec
@@ -95,6 +95,18 @@ model guess_model()
|
||||
return m;
|
||||
}
|
||||
|
||||
std::string model_name()
|
||||
{
|
||||
#ifdef __ANDROID__
|
||||
const auto manufacturer = get_property("ro.product.manufacturer");
|
||||
const auto model = get_property("ro.product.model");
|
||||
|
||||
return manufacturer + " " + model;
|
||||
#else
|
||||
return "Unknown headset";
|
||||
#endif
|
||||
}
|
||||
|
||||
static XrViewConfigurationView scale_view(XrViewConfigurationView view, uint32_t width)
|
||||
{
|
||||
double ratio = double(width) / view.recommendedImageRectWidth;
|
||||
|
||||
Reference in New Issue
Block a user