[][src]Function sdl2_sys::SDL_HapticNewEffect

pub unsafe extern "C" fn SDL_HapticNewEffect(
    haptic: *mut SDL_Haptic,
    effect: *mut SDL_HapticEffect
) -> c_int

\brief Creates a new haptic effect on the device.

\param haptic Haptic device to create the effect on. \param effect Properties of the effect to create. \return The identifier of the effect on success or -1 on error.

\sa SDL_HapticUpdateEffect \sa SDL_HapticRunEffect \sa SDL_HapticDestroyEffect