refactor hmd_traits into separate file, make class in application, and remove hardware.h/cpp

This commit is contained in:
Amanda M. Watson
2026-05-10 19:11:17 +02:00
committed by xytovl
parent b0994c54f5
commit b9f2fde119
14 changed files with 288 additions and 208 deletions
+3 -3
View File
@@ -18,7 +18,7 @@
#include "face_tracker.h"
#include "hardware.h"
#include "application.h"
#include "xr/instance.h"
#include "xr/system.h"
@@ -45,7 +45,7 @@ xr::face_tracker_type xr::face_tracker_supported(xr::instance & instance, xr::sy
return xr::face_tracker_type::htc;
}
if (hmd_traits().pico_face_tracker)
if (application::get_hmd_traits().pico_face_tracker)
{
// The extension used by Pico is not published
// it doesn't even need to be requested...
@@ -85,7 +85,7 @@ xr::face_tracker xr::make_face_tracker(xr::instance & instance, xr::system & sys
properties.supportLipFacialTracking);
}
if (hmd_traits().pico_face_tracker)
if (application::get_hmd_traits().pico_face_tracker)
{
// The extension used by Pico is not published
// it doesn't even need to be requested...