Count the number of haptic devices attached to the system.
Defined in SDL_haptic.h
int SDL_NumHaptics(void);
(int) Returns the number of haptic devices detected on the system or a negative error code on failure; call SDL_GetError() for more information.
This function is available since SDL 2.0.0.