Function sdl2_sys::SDL_HapticNumEffects
source · pub unsafe extern "C" fn SDL_HapticNumEffects(
haptic: *mut SDL_Haptic,
) -> c_int
Expand description
Get the number of effects a haptic device can store.
On some platforms this isn’t fully supported, and therefore is an approximation. Always check to see if your created effect was actually created and do not rely solely on SDL_HapticNumEffects().
\param haptic the SDL_Haptic device to query \returns the number of effects the haptic device can store 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_HapticNumEffectsPlaying \sa SDL_HapticQuery