| 293 | } |
| 294 | |
| 295 | bool 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 | |
| 306 | float InputManager::Action::GetAnalog(XrSession session, ovrHandType hand) const |
| 307 | { |
nothing calls this directly
no outgoing calls
no test coverage detected