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

Method GetVector

ReviveXR/InputManager.cpp:317–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317ovrVector2f InputManager::Action::GetVector(XrSession session, ovrHandType hand) const
318{
319 XrActionStateGetInfo info = XR_TYPE(ACTION_STATE_GET_INFO);
320 info.action = m_Action;
321 info.subactionPath = m_IsHanded ? s_SubActionPaths[hand] : XR_NULL_PATH;
322 XrActionStateVector2f data = XR_TYPE(ACTION_STATE_VECTOR2F);
323 XrResult rs = xrGetActionStateVector2f(session, &info, &data);
324 assert(XR_SUCCEEDED(rs));
325 return XR::Vector2f(data.currentState);
326}
327
328XrSpace InputManager::Action::CreateSpace(XrSession session, ovrHandType hand) const
329{

Callers 1

GetInputStateMethod · 0.80

Calls 1

Vector2fClass · 0.70

Tested by

no test coverage detected