SdlError("IDirectInputDevice8::CreateEffect() DirectX error 0x80070057") when trying to rumble my gamepad

Hi there! I use SDL2 bindings for rust(but it doesnt matter) and when I’m trying to rumble my gamepad, I get an error:

SdlError("IDirectInputDevice8::CreateEffect() DirectX error 0x80070057")

I’ve created the issue on their repository, but they sent me here. So, guys, I need a help

This is DIERR_INVALIDPARAM (“An invalid parameter was passed to the returning function, or the object was not in a state that permitted the function to be called”), but beyond that I cannot help.

Also. I got this error only when I’m trying to rumble DInput gamepad. With XInput it works fine