Lines Matching +full:side +full:- +full:effect
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright (c) 1999-2002 Vojtech Pavlik
20 #include "input-event-codes.h"
56 * IOCTLs (0x00 - 0x7f)
67 * struct input_absinfo - used by EVIOCGABS/EVIOCSABS ioctls
103 * struct input_keymap_entry - used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls
104 * @scancode: scancode represented in machine-endian form.
148 * EVIOCGMTSLOTS(len) - get MT slot values
169 * If the request code is not an ABS_MT value, -EINVAL is returned.
182 #define EVIOCSFF _IOW('E', 0x80, struct ff_effect) /* send a force effect to a force feedback devi…
183 #define EVIOCRMFF _IOW('E', 0x81, int) /* Erase a force effect */
190 * EVIOCGMASK - Retrieve current event mask
197 * The event mask is a per-client mask that specifies which events are
215 * if the receive-buffer points to invalid memory, or EINVAL if the kernel
218 #define EVIOCGMASK _IOR('E', 0x92, struct input_mask) /* Get event-masks */
221 * EVIOCSMASK - Set event mask
225 * type. See EVIOCGMASK for a description of event-masks and the
226 * argument-type.
234 * all known event-codes, all remaining codes are automatically cleared and
238 * returned if the receive-buffer points to invalid memory. EINVAL is returned
241 #define EVIOCSMASK _IOW('E', 0x93, struct input_mask) /* Set event-masks */
289 * Values describing the status of a force-feedback effect
306 * struct ff_replay - defines scheduling of the force-feedback effect
307 * @length: duration of the effect
308 * @delay: delay before effect should start playing
316 * struct ff_trigger - defines what triggers the force-feedback effect
317 * @button: number of the button triggering the effect
318 * @interval: controls how soon the effect can be re-triggered
326 * struct ff_envelope - generic force-feedback effect envelope
333 * envelope force-feedback core will convert to positive/negative
334 * value based on polarity of the default level of the effect.
335 * Valid range for the attack and fade levels is 0x0000 - 0x7fff
345 * struct ff_constant_effect - defines parameters of a constant force-feedback effect
346 * @level: strength of the effect; may be negative
355 * struct ff_ramp_effect - defines parameters of a ramp force-feedback effect
356 * @start_level: beginning strength of the effect; may be negative
357 * @end_level: final strength of the effect; may be negative
367 * struct ff_condition_effect - defines a spring or friction force-feedback effect
369 * @left_saturation: same for the left side
372 * @left_coeff: same for the left side
388 * struct ff_periodic_effect - defines parameters of a periodic force-feedback effect
389 * @waveform: kind of the effect (wave)
398 * Known waveforms - FF_SQUARE, FF_TRIANGLE, FF_SINE, FF_SAW_UP,
419 * struct ff_rumble_effect - defines parameters of a periodic force-feedback effect
432 * struct ff_effect - defines force feedback effect
433 * @type: type of the effect (FF_CONSTANT, FF_PERIODIC, FF_RAMP, FF_SPRING,
435 * @id: an unique id assigned to an effect
436 * @direction: direction of the effect
438 * @replay: scheduling of the effect (struct ff_replay)
439 * @u: effect-specific structure (one of ff_constant_effect, ff_ramp_effect,
441 * defining effect parameters
444 * To create a new effect application should set its @id to -1; the kernel
446 * this effect.
448 * Direction of the effect is encoded as follows:
449 * 0 deg -> 0x0000 (down)
450 * 90 deg -> 0x4000 (left)
451 * 180 deg -> 0x8000 (up)
452 * 270 deg -> 0xC000 (right)
471 * Force feedback effect types
487 * Force feedback periodic effect types
508 * ff->playback(effect_id = FF_GAIN) is the first effect_id to
509 * cause a collision with another ff method, in this case ff->set_gain().
510 * Therefore the greatest safe value for effect_id is FF_GAIN - 1,