Count the number of haptic devices attached to the system.
Defined in SDL_haptic.h, but apps should only #include "SDL.h"
!
int SDL_NumHaptics(void);
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.
CategoryAPI, CategoryAPIFunction