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
+12
View File
@@ -121,11 +121,14 @@ class application : public singleton<application>
xr::space left_aim_space;
xr::space right_grip_space;
xr::space right_aim_space;
xr::space eye_gaze_space;
bool hand_tracking_supported = false;
xr::hand_tracker left_hand;
xr::hand_tracker right_hand;
bool eye_gaze_supported = false;
bool session_running = false;
bool session_focused = false;
bool session_visible = false;
@@ -304,6 +307,10 @@ public:
{
return instance().right_aim_space;
};
static XrSpace eye_gaze()
{
return instance().eye_gaze_space;
};
static void ignore_debug_reports_for(void * object)
{
@@ -404,6 +411,11 @@ public:
return instance().hand_tracking_supported;
}
static bool get_eye_gaze_supported()
{
return instance().eye_gaze_supported;
}
static xr::hand_tracker & get_left_hand()
{
return instance().left_hand;