initRumble method

bool initRumble()

Initialize a haptic device for simple rumble playback.

\param haptic the haptic device to initialize for simple rumble playback. \returns true on success or false on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.2.0.

\sa SDL_PlayHapticRumble \sa SDL_StopHapticRumble \sa SDL_HapticRumbleSupported

extern SDL_DECLSPEC bool SDLCALL SDL_InitHapticRumble(SDL_Haptic *haptic)

Implementation

bool initRumble() => sdlInitHapticRumble(this);