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

Method GetDigital

ReviveXR/InputManager.cpp:273–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273bool InputManager::Action::GetDigital(XrSession session, ovrHandType hand) const
274{
275 XrActionStateGetInfo info = XR_TYPE(ACTION_STATE_GET_INFO);
276 info.action = m_Action;
277 info.subactionPath = m_IsHanded ? s_SubActionPaths[hand] : XR_NULL_PATH;
278 XrActionStateBoolean data = XR_TYPE(ACTION_STATE_BOOLEAN);
279 XrResult rs = xrGetActionStateBoolean(session, &info, &data);
280 assert(XR_SUCCEEDED(rs));
281 return data.currentState;
282}
283
284bool InputManager::Action::IsPressed(XrSession session, ovrHandType hand) const
285{

Callers 1

GetInputStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected