passthru EXT_eye_gaze_interaction

This commit is contained in:
galister
2024-08-01 12:08:05 +02:00
committed by xytovl
parent 4cfdc4fa24
commit f0ca7ff8da
11 changed files with 78 additions and 7 deletions
+1
View File
@@ -120,6 +120,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
spdlog::warn("Unable to detect refresh rates");
info.hand_tracking = application::get_hand_tracking_supported();
info.eye_gaze = application::get_eye_gaze_supported();
audio::get_audio_description(info);
if (not application::get_config().microphone)
+3
View File
@@ -146,6 +146,9 @@ void scenes::stream::tracking()
{device_id::RIGHT_AIM, application::right_aim()},
{device_id::RIGHT_GRIP, application::right_grip()}};
if (application::get_eye_gaze_supported())
spaces.push_back({device_id::EYE_GAZE, application::eye_gaze()});
XrSpace view_space = application::view();
XrDuration tracking_period = 1'000'000; // Send tracking data every 1ms
const XrDuration dt = 100'000; // Wake up 0.1ms before measuring the position