| 96 | } |
| 97 | |
| 98 | ovrResult InputManager::GetControllerVibrationState(ovrSession session, ovrControllerType controllerType, ovrHapticsPlaybackState* outState) |
| 99 | { |
| 100 | memset(outState, 0, sizeof(ovrHapticsPlaybackState)); |
| 101 | |
| 102 | for (InputDevice* device : m_InputDevices) |
| 103 | { |
| 104 | if (controllerType & device->GetType() && device->IsConnected()) |
| 105 | device->GetVibrationState(controllerType & ovrControllerType_RTouch ? ovrHand_Right : ovrHand_Left, outState); |
| 106 | } |
| 107 | |
| 108 | return ovrSuccess; |
| 109 | } |
| 110 | |
| 111 | unsigned int InputManager::SpaceRelationToPoseState(const XrSpaceLocation& location, double time, ovrPoseStatef& lastPoseState, ovrPoseStatef& outPoseState) |
| 112 | { |
no test coverage detected