Lines Matching refs:effect
95 int ioctl(int file_descriptor, int request, struct ff_effect *effect);
99 "effect" points to a structure describing the effect to upload. The effect is
101 The content of effect may be modified. In particular, its field "id" is set
103 some operations (removing an effect, controlling the playback).
105 allocate a new effect.
113 3.3 Removing an effect from the device
115 int ioctl(int fd, EVIOCRMFF, effect.id);
118 stops the effect if it was playing.
129 struct ff_effect effect;
136 play.code = effect.id;
141 /* Stop an effect */
143 stop.code = effect.id;
168 and I think it should be an effect, which computation depends on the game
183 3.7 Dynamic update of an effect
185 Proceed as if you wanted to upload a new effect, except that instead of
186 setting the id field to -1, you set it to the wanted effect id.
187 Normally, the effect is not stopped and restarted. However, depending on the
189 the direction of an effect cannot be updated with iforce devices. In this
190 case, the driver stops the effect, up-load it, and restart it.
192 Therefore it is recommended to dynamically change direction while the effect
193 is playing only when it is ok to restart the effect with a replay count of 1.
197 Every time the status of an effect is changed, an event is sent. The values
201 /* When the status of the effect changed */
207 /* Contains the id of the effect */
214 FF_STATUS_STOPPED The effect stopped playing
215 FF_STATUS_PLAYING The effect started to play