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.
int SDL_HapticRumbleSupported(SDL_Haptic * haptic);
haptic | haptic device to check for rumble support |
Returns SDL_TRUE if effect is supported, SDL_FALSE if it isn't, or a negative error code on failure; call SDL_GetError() for more information.
This function is available since SDL 3.0.0.
extern SDL_Haptic* dev;
if (SDL_HapticRumbleSupported(dev)) {
SDL_HapticRumbleInit(dev);1.0f, 3000);
SDL_HapticRumblePlay(dev, 3000);
SDL_Delay( }
CategoryAPI, CategoryForceFeedback, CategoryDraft