MCPcopy Create free account
hub / github.com/LibreVR/Revive / CreateSpace

Method CreateSpace

ReviveXR/InputManager.cpp:328–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328XrSpace InputManager::Action::CreateSpace(XrSession session, ovrHandType hand) const
329{
330 XrSpace space;
331 XrActionSpaceCreateInfo spaceInfo = XR_TYPE(ACTION_SPACE_CREATE_INFO);
332 spaceInfo.action = m_Action;
333 spaceInfo.subactionPath = m_IsHanded ? s_SubActionPaths[hand] : XR_NULL_PATH;
334 spaceInfo.poseInActionSpace = XR::Posef::Identity();
335 XrResult rs = xrCreateActionSpace(session, &spaceInfo, &space);
336 assert(XR_SUCCEEDED(rs));
337 return space;
338}
339
340/* Controller child-classes */
341

Callers 1

GetActionSpacesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected