Fix HTC face tracking.

- Properly send face data to server.
- Fix grayed out toggle
This commit is contained in:
Awzri
2025-02-08 10:24:15 +01:00
committed by xytovl
parent c99ed19ca4
commit 7bc99772a5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -663,7 +663,7 @@ void scenes::lobby::gui_settings()
ImGui::EndDisabled();
}
{
ImGui::BeginDisabled(not application::get_fb_face_tracking2_supported());
ImGui::BeginDisabled(not(application::get_fb_face_tracking2_supported() or application::get_htc_face_tracking_eye_supported() or application::get_htc_face_tracking_lip_supported()));
bool enabled = config.check_feature(feature::face_tracking);
if (ImGui::Checkbox(_S("Enable face tracking"), &enabled))
{
+1 -1
View File
@@ -309,7 +309,7 @@ void scenes::stream::tracking()
application::get_fb_face_tracker2().get_weights(t0 + Δt, packet.face.emplace());
break;
case wivrn::from_headset::face_type::htc:
auto face_htc = packet.face_htc.emplace();
auto & face_htc = packet.face_htc.emplace();
face_htc.eye_active = false;
face_htc.lip_active = false;
if (application::get_htc_face_tracking_eye_supported())