Function sdl2_sys::SDL_NumHaptics

source ·
pub unsafe extern "C" fn SDL_NumHaptics() -> c_int
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