Ignore errors when enumerating action sources, fixed input paths for HTC Vive Focus 3
This commit is contained in:
+13
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user