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

Method GetControllerVibrationState

ReviveXR/InputManager.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98ovrResult 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
111unsigned int InputManager::SpaceRelationToPoseState(const XrSpaceLocation& location, double time, ovrPoseStatef& lastPoseState, ovrPoseStatef& outPoseState)
112{

Callers 1

Calls 3

GetTypeMethod · 0.45
IsConnectedMethod · 0.45
GetVibrationStateMethod · 0.45

Tested by

no test coverage detected