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

Function ovr_SetControllerVibration

ReviveXR/REV_CAPI.cpp:573–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573OVR_PUBLIC_FUNCTION(ovrResult) ovr_SetControllerVibration(ovrSession session, ovrControllerType controllerType, float frequency, float amplitude)
574{
575 REV_TRACE(ovr_SetControllerVibration);
576 MICROPROFILE_META_CPU("Controller Type", controllerType);
577
578 if (!session || !session->Input)
579 return ovrError_InvalidSession;
580
581 return session->Input->SetControllerVibration(session, controllerType, frequency, amplitude);
582}
583
584OVR_PUBLIC_FUNCTION(ovrResult) ovr_SubmitControllerVibration(ovrSession session, ovrControllerType controllerType, const ovrHapticsBuffer* buffer)
585{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected