Struct gilrs::ff::EffectData [] [src]

pub struct EffectData {
    pub wave: Waveform,
    pub direction: Direction,
    pub period: u16,
    pub magnitude: i16,
    pub offset: i16,
    pub phase: u16,
    pub envelope: Envelope,
    pub replay: Replay,
    pub trigger: Trigger,
}

Describes wave-shaped force feedback effect that repeat itself over time.

Borrowed from SDL Documentation:

button         period
press          |     |
  ||      __    __    __    __    __    _
  ||     |  |  |  |  |  |  |  |  |  |   magnitude
  \/     |  |__|  |__|  |__|  |__|  |   _
   -----
      |            offset?
    delay          phase?

-------------------------------------
              length
===================================================
                      interval

Fields

Kind of the wave

Direction of the effect

Period of the wave in ms

Peak value

Mean value of the wave

Horizontal shift

Envelope data

Scheduling of the effect

Trigger conditions

Trait Implementations

impl Into<ff_effect> for EffectData
[src]

Performs the conversion.

impl Copy for EffectData
[src]

impl Clone for EffectData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for EffectData
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for EffectData
[src]

Formats the value using the given formatter.

impl Default for EffectData
[src]

Returns the "default value" for a type. Read more