From 28e2dd4a62895c3cdd8864fca13f075bbe4d8c4c Mon Sep 17 00:00:00 2001 From: rbessems <77022116+rbessems@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:01:16 -0700 Subject: [PATCH] Move priority assigned before xrCreateActionSet (#138) Issue: #131 --- Chapter4/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Chapter4/main.cpp b/Chapter4/main.cpp index 2705467..11cfa1d 100644 --- a/Chapter4/main.cpp +++ b/Chapter4/main.cpp @@ -293,9 +293,10 @@ class OpenXRTutorial { strncpy(actionSetCI.actionSetName, "openxr-tutorial-actionset", XR_MAX_ACTION_SET_NAME_SIZE); // Localized names are required so there is a human-readable action name to show the user if they are rebinding Actions in an options screen. strncpy(actionSetCI.localizedActionSetName, "OpenXR Tutorial ActionSet", XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE); - OPENXR_CHECK(xrCreateActionSet(m_xrInstance, &actionSetCI, &m_actionSet), "Failed to create ActionSet."); // Set a priority: this comes into play when we have multiple Action Sets, and determines which Action takes priority in binding to a specific input. actionSetCI.priority = 0; + + OPENXR_CHECK(xrCreateActionSet(m_xrInstance, &actionSetCI, &m_actionSet), "Failed to create ActionSet."); // XR_DOCS_TAG_END_CreateActionSet // XR_DOCS_TAG_BEGIN_CreateActionLambda