pub unsafe extern "C" fn SDL_CreateHapticEffect(
haptic: *mut SDL_Haptic,
effect: *const SDL_HapticEffect,
) -> SDL_HapticEffectIDExpand description
Create a new haptic effect on a specified device.
§Parameters
haptic: anSDL_Hapticdevice to create the effect on.effect: anSDL_HapticEffectstructure containing the properties of the effect to create.
§Return value
Returns the ID of the effect on success or -1 on failure; call
SDL_GetError() for more information.
§Availability
This function is available since SDL 3.2.0.