Module rich_sdl2_rust::haptic::effect
source · Expand description
Controls the effect on the haptic device.
Structs§
- A condition to trigger the effect. Refer to
Direction
for which side is the positive/negative on the joystick. - A custom periodic waveform by your sampled data.
- An envelope to fade in/out the effect. If both
attack_length
andfade_level
are0
, the envelope is not used. An example of a constant effect evolution in time: - A magnitude level of the force.
- Length and delay of the playing.
- A linear ramp to interpolate the force of the effect.
- A trigger button to start the effect, and an interval between the effect.
- A vector to represent the XYZ component for
Condition
. - A periodic waveform specification.
Enums§
- An effect on the haptic device.
- A kind of the waveform.