Function SDL_NumHaptics

pub unsafe extern "C" fn SDL_NumHaptics() -> i32
Available on crate feature dep_sdl2 only.
Expand description

Count the number of haptic devices attached to the system.

\returns the number of haptic devices detected on the system 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_HapticName