#include <SDL_haptic.h>
A custom force feedback effect is much like a periodic effect, where the application can define it's exact shape. You will have to allocate the data yourself. Data should consist of channels * samples Uint16 samples.
If channels is one, the effect is rotated using the defined direction. Otherwise it uses the samples in data for the different axes.
Duration of the attack.
Level at the start of the attack.
Direction of the effect.
Duration of the fade.
Level at the end of the fade.