diff --git a/scripts/generate_oxr_ext_support.py b/scripts/generate_oxr_ext_support.py index ac137ff33..794915f2f 100755 --- a/scripts/generate_oxr_ext_support.py +++ b/scripts/generate_oxr_ext_support.py @@ -37,6 +37,7 @@ EXTENSIONS = ( ['XR_EXTX_overlay'], ['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'], ) ROOT = Path(__file__).resolve().parent.parent diff --git a/src/xrt/state_trackers/oxr/oxr_extension_support.h b/src/xrt/state_trackers/oxr/oxr_extension_support.h index 5ddb97bea..e0de0007a 100644 --- a/src/xrt/state_trackers/oxr/oxr_extension_support.h +++ b/src/xrt/state_trackers/oxr/oxr_extension_support.h @@ -324,6 +324,17 @@ #define OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) #endif + +/* + * XR_MNDX_force_feedback_curl + */ +#if defined(XR_MNDX_force_feedback_curl) +#define OXR_HAVE_MNDX_force_feedback_curl +#define OXR_EXTENSION_SUPPORT_MNDX_force_feedback_curl(_) _(MNDX_force_feedback_curl, MNDX_FORCE_FEEDBACK_CURL) +#else +#define OXR_EXTENSION_SUPPORT_MNDX_force_feedback_curl(_) +#endif + // end of GENERATED per-extension defines - do not modify - used by scripts /*! @@ -374,5 +385,6 @@ OXR_EXTENSION_SUPPORT_MND_swapchain_usage_input_attachment_bit(_) \ OXR_EXTENSION_SUPPORT_EXTX_overlay(_) \ OXR_EXTENSION_SUPPORT_MNDX_ball_on_a_stick_controller(_) \ - OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) + OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \ + OXR_EXTENSION_SUPPORT_MNDX_force_feedback_curl(_) // clang-format on