SDL_DestroyHapticEffect - Man Page

Destroy a haptic effect on the device.

Header File

Defined in SDL3/SDL_haptic.h

Synopsis

#include "SDL3/SDL.h"

void SDL_DestroyHapticEffect(SDL_Haptic *haptic, int effect);

Description

This will stop the effect if it's running. Effects are automatically destroyed when the device is closed.

Function Parameters

haptic

the SDL_Haptic
device to destroy the effect on.

effect

the ID of the haptic effect to destroy.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_CreateHapticEffect(3)

Referenced By

SDL_CreateHapticEffect(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS