Function sdl2_sys::SDL_HapticEffectSupported
source · pub unsafe extern "C" fn SDL_HapticEffectSupported(
haptic: *mut SDL_Haptic,
effect: *mut SDL_HapticEffect,
) -> c_int
Expand description
Check to see if an effect is supported by a haptic device.
\param haptic the SDL_Haptic device to query \param effect the desired effect to query \returns SDL_TRUE if effect is supported, SDL_FALSE if it isn’t, or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_HapticNewEffect \sa SDL_HapticQuery