A wave-shaped effect that repeats itself over time.
The type determines the shape of the wave and the other parameters determine the dimensions of the wave.
Creates a new instance of the effect.
waveType one of SDL_HAPTIC_SINE, SDL_HAPTIC_LEFTRIGHT, SDL_HAPTIC_TRIANGLE, SDL_HAPTIC_SAWTOOTHUP or SDL_HAPTIC_SAWTOOTHDOWN.
Returns the duration of effect (ms).
Returns the delay before starting effect.
Returns the button that triggers effect.
Returns how soon before effect can be triggered again.
Returns the duration of the attack (ms).
Returns the level at the start of the attack.
Returns the duration of the fade out (ms).
Returns the level at the end of the fade.
Returns the effect direction.
This instance is owned by the effect, and any changes will apply only to this effect.
Sets the duration of the effect.
You can pass SDL_HAPTIC_INFINITY to length instead of a 0-32767 value.
Sets the delay before starting the effect.
Sets the button that triggers the effect.
Sets how soon it can be triggered again after button.
Sets the period of the wave.
Sets the peak value
Ff negative, equivalent to 180 degrees extra phase shift
Sets the mean value of the wave.
Sets the positive phase shift given by hundredth of a degree.
Phase is given by hundredths of a degree, meaning that giving the phase a value of 9000 will displace it 25% of its period. Here are sample values:
0 - No phase displacement
9000 - Displaced 25% of its period
18000 - Displaced 50% of its period
27000 - Displaced 75% of its period
36000 - Displaced 100% of its period, same as 0, but 0 is preferred
Sets the duration of the attack.
Sets the level at the start of the attack.
Sets the duration of the fade.
Sets the level at the end of the fade.