| 315 | } |
| 316 | |
| 317 | ovrVector2f 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 | |
| 328 | XrSpace InputManager::Action::CreateSpace(XrSession session, ovrHandType hand) const |
| 329 | { |