SDL_UpdateHapticEffect3
Update the properties of an effect.
Usage
#include "SDL3/SDL.h"
bool SDL_UpdateHapticEffect(SDL_Haptic *haptic, int effect, const SDL_HapticEffect *data);
Header file
Defined in SDL3/SDL_haptic.h
Overview
Can be used dynamically, although behavior when dynamically changing direction may be strange. Specifically the effect may re-upload itself and start playing from the start. You also cannot change the type either when running SDL_UpdateHapticEffect ().
Function parameters
haptic
|
the |
|---|---|
effect
|
the identifier of the effect to update. |
data
|
an |
Return value
Returns true on success or false on failure; call
SDL_GetError () for more information.