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

Method SubmitControllerVibration

ReviveXR/InputManager.cpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87ovrResult InputManager::SubmitControllerVibration(ovrSession session, ovrControllerType controllerType, const ovrHapticsBuffer* buffer)
88{
89 for (InputDevice* device : m_InputDevices)
90 {
91 if (controllerType & device->GetType() && device->IsConnected())
92 device->SubmitVibration(controllerType, buffer);
93 }
94
95 return ovrSuccess;
96}
97
98ovrResult InputManager::GetControllerVibrationState(ovrSession session, ovrControllerType controllerType, ovrHapticsPlaybackState* outState)
99{

Callers 1

Calls 3

GetTypeMethod · 0.45
IsConnectedMethod · 0.45
SubmitVibrationMethod · 0.45

Tested by

no test coverage detected