st/oxr: Add XR_MNDX_system_buttons support

This commit is contained in:
Jakob Bornecrantz 2023-07-15 13:04:54 +01:00
parent 314fc9c583
commit 0da57b30a4
3 changed files with 17 additions and 1 deletions

View file

@ -71,6 +71,7 @@ EXTENSIONS = (
['XR_MNDX_egl_enable', 'XR_USE_PLATFORM_EGL', 'XR_USE_GRAPHICS_API_OPENGL'],
['XR_MNDX_force_feedback_curl'],
['XR_MNDX_hydra'],
['XR_MNDX_system_buttons'],
)

View file

@ -351,6 +351,9 @@ oxr_xrSuggestInteractionProfileBindings(XrInstance instance,
#endif
.MNDX_ball_on_a_stick_controller = inst->extensions.MNDX_ball_on_a_stick_controller,
.MNDX_hydra = inst->extensions.MNDX_hydra,
#ifdef OXR_HAVE_MNDX_system_buttons
.MNDX_system_buttons = inst->extensions.MNDX_system_buttons,
#endif
.EXT_eye_gaze_interaction = inst->extensions.EXT_eye_gaze_interaction,
#ifdef OXR_HAVE_HTCX_vive_tracker_interaction
.HTCX_vive_tracker_interaction = inst->extensions.HTCX_vive_tracker_interaction,

View file

@ -449,6 +449,17 @@
#define OXR_EXTENSION_SUPPORT_MNDX_hydra(_)
#endif
/*
* XR_MNDX_system_buttons
*/
#if defined(XR_MNDX_system_buttons)
#define OXR_HAVE_MNDX_system_buttons
#define OXR_EXTENSION_SUPPORT_MNDX_system_buttons(_) _(MNDX_system_buttons, MNDX_SYSTEM_BUTTONS)
#else
#define OXR_EXTENSION_SUPPORT_MNDX_system_buttons(_)
#endif
// end of GENERATED per-extension defines - do not modify - used by scripts
/*!
@ -510,5 +521,6 @@
OXR_EXTENSION_SUPPORT_MNDX_ball_on_a_stick_controller(_) \
OXR_EXTENSION_SUPPORT_MNDX_egl_enable(_) \
OXR_EXTENSION_SUPPORT_MNDX_force_feedback_curl(_) \
OXR_EXTENSION_SUPPORT_MNDX_hydra(_)
OXR_EXTENSION_SUPPORT_MNDX_hydra(_) \
OXR_EXTENSION_SUPPORT_MNDX_system_buttons(_)
// clang-format on