/* Returns the number of effects a haptic device can play.  */
int SDL_HapticNumEffectsPlaying(SDL_Haptic *haptic)
/* Returns the number of effects a haptic device can play.  */
int SDL_HapticNumEffectsPlaying(SDL_Haptic *haptic)
{
    if (!ValidHaptic(haptic)) {
        return -1;
    }
    return haptic->nplaying;
}