passthru EXT_eye_gaze_interaction
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user