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

Method SubmitVibration

ReviveXR/InputManager.cpp:660–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660void InputManager::OculusTouch::SubmitVibration(ovrControllerType controllerType, const ovrHapticsBuffer* buffer)
661{
662 if (controllerType & ovrControllerType_LTouch)
663 m_HapticsBuffer[ovrHand_Left].AddSamples(buffer);
664 if (controllerType & ovrControllerType_RTouch)
665 m_HapticsBuffer[ovrHand_Right].AddSamples(buffer);
666}
667
668InputManager::OculusRemote::OculusRemote(XrInstance instance)
669 : InputDevice(instance, "remote", "Oculus Remote")

Callers 2

Calls 1

AddSamplesMethod · 0.45

Tested by

no test coverage detected