Lines Matching full:effect
115 int ioctl(int file_descriptor, int request, struct ff_effect *effect);
119 "effect" points to a structure describing the effect to upload. The effect is
121 The content of effect may be modified. In particular, its field "id" is set
123 some operations (removing an effect, controlling the playback).
125 allocate a new effect.
142 Removing an effect from the device
147 int ioctl(int fd, EVIOCRMFF, effect.id);
150 stops the effect if it was playing.
164 struct ff_effect effect;
171 play.code = effect.id;
176 /* Stop an effect */
178 stop.code = effect.id;
207 and I think it should be an effect, which computation depends on the game
224 Dynamic update of an effect
227 Proceed as if you wanted to upload a new effect, except that instead of
228 setting the id field to -1, you set it to the wanted effect id.
229 Normally, the effect is not stopped and restarted. However, depending on the
231 the direction of an effect cannot be updated with iforce devices. In this
232 case, the driver stops the effect, up-load it, and restart it.
234 Therefore it is recommended to dynamically change direction while the effect
235 is playing only when it is ok to restart the effect with a replay count of 1.
240 Every time the status of an effect is changed, an event is sent. The values
244 /* When the status of the effect changed */
250 /* Contains the id of the effect */
257 FF_STATUS_STOPPED The effect stopped playing
258 FF_STATUS_PLAYING The effect started to play