SDL_DestroyHapticEffect(3)

SDL_DestroyHapticEffect3

Destroy a haptic effect on the device.

Usage

#include "SDL3/SDL.h"

void SDL_DestroyHapticEffect(SDL_Haptic *haptic, int effect);

Header file

Defined in SDL3/SDL_haptic.h

Overview

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.