logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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