Ignore errors when enumerating action sources, fixed input paths for HTC Vive Focus 3

This commit is contained in:
Guillaume Meunier
2024-01-30 20:26:07 +01:00
parent a2126f3e28
commit 33fea3f6b6
4 changed files with 51 additions and 20 deletions
+13 -2
View File
@@ -63,8 +63,6 @@ model guess_model()
return model::meta_quest_pro;
if (device == "eureka")
return model::meta_quest_3;
if (device == "TBD")
return model::htc_vive_focus_3;
if (manufacturer == "Pico")
{
@@ -74,6 +72,14 @@ model guess_model()
spdlog::info("manufacturer={}, model={}, device={} assuming Pico 4", manufacturer, model, device);
return model::pico_4;
}
if (manufacturer == "HTC")
{
if (model == "VIVE Focus 3")
return model::htc_vive_focus_3;
if (model == "VIVE XR Series")
return model::htc_vive_xr_elite;
}
spdlog::info("Unknown model, manufacturer={}, model={}, device={}", manufacturer, model, device);
#endif
@@ -122,6 +128,11 @@ XrViewConfigurationView override_view(XrViewConfigurationView view, model m)
view.recommendedImageRectWidth = 2448;
view.recommendedImageRectHeight = 2448;
return view;
case model::htc_vive_xr_elite:
spdlog::info("Using panel resolution 1920x1920 for HTC Vive XR Elite");
view.recommendedImageRectWidth = 1920;
view.recommendedImageRectHeight = 1920;
return view;
case model::unknown:
return view;
}