pub unsafe extern "C" fn ovr_SubmitControllerVibration(
    session: ovrSession,
    controllerType: ovrControllerType,
    buffer: *const ovrHapticsBuffer
) -> ovrResult
Expand description

Submits a Haptics buffer (used for vibration) to Touch (only) controllers.

Note: ovr_SubmitControllerVibration cannot be used interchangeably with ovr_SetControllerVibration.

session Specifies an ovrSession previously returned by ovr_Create.

controllerType Controller where the Haptics buffer will be played.

buffer Haptics buffer containing amplitude samples to be played.

Returns an ovrResult for which OVR_SUCCESS(result) is false upon error and true upon success. Return values include but aren’t limited to: * ovrSuccess: The call succeeded and a result was returned. * ovrSuccess_DeviceUnavailable: The call succeeded but the device referred to by controllerType is not available.

see ovrHapticsBuffer