diff options
author | Bastiaan Olij <mux213@gmail.com> | 2023-11-22 17:00:32 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2024-01-10 16:58:40 +1100 |
commit | 4c806c03dfcc88a92e7acd36ace62d91b5390d2b (patch) | |
tree | 7469cd8ef1ee35491bf800295a28c095f22f04a3 /modules/openxr/openxr_interface.h | |
parent | 9b522ac1a85cab1a7a867b7a9f3bb102d9376ac2 (diff) | |
download | redot-engine-4c806c03dfcc88a92e7acd36ace62d91b5390d2b.tar.gz |
OpenXR: Add support for hand tracking source extension
Diffstat (limited to 'modules/openxr/openxr_interface.h')
-rw-r--r-- | modules/openxr/openxr_interface.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/openxr/openxr_interface.h b/modules/openxr/openxr_interface.h index 489d0845ba..ca95fdf04d 100644 --- a/modules/openxr/openxr_interface.h +++ b/modules/openxr/openxr_interface.h @@ -194,6 +194,15 @@ public: void set_motion_range(const Hand p_hand, const HandMotionRange p_motion_range); HandMotionRange get_motion_range(const Hand p_hand) const; + enum HandTrackedSource { + HAND_TRACKED_SOURCE_UNKNOWN, + HAND_TRACKED_SOURCE_UNOBSTRUCTED, + HAND_TRACKED_SOURCE_CONTROLLER, + HAND_TRACKED_SOURCE_MAX + }; + + HandTrackedSource get_hand_tracking_source(const Hand p_hand) const; + enum HandJoints { HAND_JOINT_PALM = 0, HAND_JOINT_WRIST = 1, @@ -248,6 +257,7 @@ public: VARIANT_ENUM_CAST(OpenXRInterface::Hand) VARIANT_ENUM_CAST(OpenXRInterface::HandMotionRange) +VARIANT_ENUM_CAST(OpenXRInterface::HandTrackedSource) VARIANT_ENUM_CAST(OpenXRInterface::HandJoints) VARIANT_BITFIELD_CAST(OpenXRInterface::HandJointFlags) |