Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ff_effect Struct Reference

#include <input.h>

Data Fields

__u16 type
 
__s16 id
 
__u16 direction
 
struct ff_trigger trigger
 
struct ff_replay replay
 
union {
   struct ff_constant_effect   constant
 
   struct ff_ramp_effect   ramp
 
   struct ff_periodic_effect   periodic
 
   struct ff_condition_effect   condition [2]
 
   struct ff_rumble_effect   rumble
 
u
 

Detailed Description

struct ff_effect - defines force feedback effect : type of the effect (FF_CONSTANT, FF_PERIODIC, FF_RAMP, FF_SPRING, FF_FRICTION, FF_DAMPER, FF_RUMBLE, FF_INERTIA, or FF_CUSTOM) : an unique id assigned to an effect : direction of the effect : trigger conditions (struct ff_trigger) : scheduling of the effect (struct ff_replay) : effect-specific structure (one of ff_constant_effect, ff_ramp_effect, ff_periodic_effect, ff_condition_effect, ff_rumble_effect) further defining effect parameters

This structure is sent through ioctl from the application to the driver. To create a new effect application should set its to -1; the kernel will return assigned which can later be used to update or delete this effect.

Direction of the effect is encoded as follows: 0 deg -> 0x0000 (down) 90 deg -> 0x4000 (left) 180 deg -> 0x8000 (up) 270 deg -> 0xC000 (right)

Definition at line 1095 of file input.h.

Field Documentation

Definition at line 1106 of file input.h.

Definition at line 1103 of file input.h.

Definition at line 1098 of file input.h.

Definition at line 1097 of file input.h.

Definition at line 1105 of file input.h.

Definition at line 1104 of file input.h.

struct ff_replay replay

Definition at line 1100 of file input.h.

Definition at line 1107 of file input.h.

struct ff_trigger trigger

Definition at line 1099 of file input.h.

Definition at line 1096 of file input.h.

union { ... } u

The documentation for this struct was generated from the following file: