Skip to content

Commit

Permalink
Move priority assigned before xrCreateActionSet (#138)
Browse files Browse the repository at this point in the history
Issue: #131
  • Loading branch information
rbessems authored Oct 1, 2024
1 parent 1f35bb2 commit 28e2dd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Chapter4/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28e2dd4

Please sign in to comment.