THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Check whether rumble is supported on a haptic device.
haptic | haptic device to check for rumble support |
Returns SDL_TRUE if the effect is supported or SDL_FALSE if it isn't.
This function is available since SDL 3.0.0.
extern SDL_Haptic* dev;
if (SDL_HapticRumbleSupported(dev)) {
SDL_HapticRumbleInit(dev);
SDL_HapticRumblePlay(dev, 1.0f, 3000);
SDL_Delay(3000);
}