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_PlayHapticRumble - Run a simple rumble effect on a haptic device.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

haptic the haptic device to play the rumble effect on.

       strength
              strength of the rumble to play as a 0-1 float value.

       length length of the rumble to play in milliseconds.

Name

       SDL_PlayHapticRumble - Run a simple rumble effect on a haptic device.

Return Value

       for more information.

See Also

SDL_InitHapticRumble(3), SDL_StopHapticRumble(3)

Simple Directmedia Layer                           SDL 3.2.20                            SDL_PlayHapticRumble(3)

Synopsis

#include<SDL3/SDL_haptic.h>boolSDL_PlayHapticRumble(SDL_Haptic*haptic,floatstrength,Uint32length);

See Also