From 2aed9184e6ac8f69ed1641df5466e80084e8069e Mon Sep 17 00:00:00 2001 From: Korcan Hussein Date: Thu, 29 Jun 2023 00:04:58 +0100 Subject: [PATCH] st/oxr: Add disabled XR_HTCX_vive_tracker defines Useful for various compiletime checks. --- scripts/generate_oxr_ext_support.py | 1 + src/xrt/state_trackers/oxr/oxr_extension_support.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/scripts/generate_oxr_ext_support.py b/scripts/generate_oxr_ext_support.py index e4918bfd9..ad9ac64cb 100755 --- a/scripts/generate_oxr_ext_support.py +++ b/scripts/generate_oxr_ext_support.py @@ -62,6 +62,7 @@ EXTENSIONS = ( ['XR_MND_headless'], ['XR_MND_swapchain_usage_input_attachment_bit'], ['XR_EXTX_overlay'], + ['XR_HTCX_vive_tracker_interaction', 'ALWAYS_DISABLED'], ['XR_MNDX_ball_on_a_stick_controller'], ['XR_MNDX_egl_enable', 'XR_USE_PLATFORM_EGL', 'XR_USE_GRAPHICS_API_OPENGL'], ['XR_MNDX_force_feedback_curl'], diff --git a/src/xrt/state_trackers/oxr/oxr_extension_support.h b/src/xrt/state_trackers/oxr/oxr_extension_support.h index 1c7615fd6..c62245abb 100644 --- a/src/xrt/state_trackers/oxr/oxr_extension_support.h +++ b/src/xrt/state_trackers/oxr/oxr_extension_support.h @@ -349,6 +349,18 @@ #endif +/* + * XR_HTCX_vive_tracker_interaction + */ +#if defined(XR_HTCX_vive_tracker_interaction) && defined(ALWAYS_DISABLED) +#define OXR_HAVE_HTCX_vive_tracker_interaction +#define OXR_EXTENSION_SUPPORT_HTCX_vive_tracker_interaction(_) \ + _(HTCX_vive_tracker_interaction, HTCX_VIVE_TRACKER_INTERACTION) +#else +#define OXR_EXTENSION_SUPPORT_HTCX_vive_tracker_interaction(_) +#endif + + /* * XR_MNDX_ball_on_a_stick_controller */ @@ -446,6 +458,7 @@ OXR_EXTENSION_SUPPORT_MND_headless(_) \ OXR_EXTENSION_SUPPORT_MND_swapchain_usage_input_attachment_bit(_) \ OXR_EXTENSION_SUPPORT_EXTX_overlay(_) \ + OXR_EXTENSION_SUPPORT_HTCX_vive_tracker_interaction(_) \ OXR_EXTENSION_SUPPORT_MNDX_ball_on_a_stick_controller(_) \ OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \ OXR_EXTENSION_SUPPORT_MNDX_force_feedback_curl(_) \