SDL_InitHapticRumble - Initialize a haptic device for simple rumble playback.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
haptic the haptic device to initialize for simple rumble playback.
Header File
Defined in SDL3/SDL_haptic.h
Name
SDL_InitHapticRumble - Initialize a haptic device for simple rumble playback.
Return Value
Returns true on success or false on failure; call
SDL_GetError () for more information.
See Also
•(3), SDL_PlayHapticRumble(3), •(3), SDL_StopHapticRumble(3), •(3), SDL_HapticRumbleSupported(3) Simple Directmedia Layer SDL 3.2.10 SDL_InitHapticRumble(3)
Synopsis
#include"SDL3/SDL.h"boolSDL_InitHapticRumble(SDL_Haptic*haptic);
