Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_DestroyHapticEffect - Destroy a haptic effect on the device.

Availability

       This function is available since SDL 3.2.0.

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.

Header File

       Defined in SDL3/SDL_haptic.h

Name

       SDL_DestroyHapticEffect - Destroy a haptic effect on the device.

See Also

(3), SDL_CreateHapticEffect(3)

Simple Directmedia Layer                           SDL 3.2.10                         SDL_DestroyHapticEffect(3)

Synopsis

#include"SDL3/SDL.h"voidSDL_DestroyHapticEffect(SDL_Haptic*haptic,inteffect);

See Also