/* Stops the simple rumble on a haptic device.  */
int SDL_HapticRumbleStop(SDL_Haptic *haptic)
/* Stops the simple rumble on a haptic device.  */
int SDL_HapticRumbleStop(SDL_Haptic *haptic)
{
    if (!ValidHaptic(haptic)) {
        return -1;
    }
    if (haptic->rumble_id < 0) {
        return SDL_SetError("Haptic: Rumble effect not initialized on haptic device");
    }
    return SDL_HapticStopEffect(haptic, haptic->rumble_id);
}