SDL_GameControllerRumble

How come the function SDL_GameControllerRumble isn’t documented? Should I avoid using this function/is it deprecated?

1 Like

It was added in 2.0.9 if I recall correctly, so it’s fairly new, probably the reason why no documentation.

Previously you had to use Joystick Haptic api to get rumble, this is a simpler way. I changed my code for this and it worked.

it’s simple to use, this will rumble both left and right at maximum.

SDL_GameControllerRumble(your_sdl_controller_handle, 0xFFFF , 0xFFFF, 1000);