| 271 | } |
| 272 | |
| 273 | bool 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 | |
| 284 | bool InputManager::Action::IsPressed(XrSession session, ovrHandType hand) const |
| 285 | { |