Skip to content

Commit

Permalink
Added gaze extension in the required extensions and avoid to disable …
Browse files Browse the repository at this point in the history
…it if the property is not set
  • Loading branch information
S-Dafarra committed Oct 25, 2024
1 parent f7a4f1b commit 3c1d8f2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/devices/openxrheadset/OpenXrInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ bool OpenXrInterface::prepareXrInstance()
{
requestedExtensions.push_back(XR_HTC_FACIAL_TRACKING_EXTENSION_NAME);
}
if (m_pimpl->use_gaze)
{
requestedExtensions.push_back(XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME);
}

// Populate the info to create the instance
XrInstanceCreateInfo instanceCreateInfo
Expand Down Expand Up @@ -417,7 +421,10 @@ void OpenXrInterface::checkSystemProperties()
{
yCInfo(OPENXRHEADSET, "Eye gaze properties for system %lu: Eye gaze %d",
system_props.systemId, eye_gaze_props.supportsEyeGazeInteraction);
m_pimpl->use_gaze = eye_gaze_props.supportsEyeGazeInteraction;
if (!eye_gaze_props.supportsEyeGazeInteraction)
{
yCWarning(OPENXRHEADSET) << "The runtime does not seem to support eye gaze interaction! Trying to use it anyway.";
}
}

}
Expand Down

0 comments on commit 3c1d8f2

Please sign in to comment.