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

Method IsReleased

ReviveXR/InputManager.cpp:295–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295bool InputManager::Action::IsReleased(XrSession session, ovrHandType hand) const
296{
297 XrActionStateGetInfo info = XR_TYPE(ACTION_STATE_GET_INFO);
298 info.action = m_Action;
299 info.subactionPath = m_IsHanded ? s_SubActionPaths[hand] : XR_NULL_PATH;
300 XrActionStateBoolean data = XR_TYPE(ACTION_STATE_BOOLEAN);
301 XrResult rs = xrGetActionStateBoolean(session, &info, &data);
302 assert(XR_SUCCEEDED(rs));
303 return data.changedSinceLastSync && !data.currentState;
304}
305
306float InputManager::Action::GetAnalog(XrSession session, ovrHandType hand) const
307{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected