(logo) Evfilter library documentation

Home | FAQ | Filters | Profile | Filter api | Library api

List of implemeted filters

Barrier
Commit
Dump
NoRepeat
PressureToKey
ScaleAbs
WeightedAverageAbs
Mirror
Rotate

Barrier

This filter implements barrier that holds events until sync event comes. This is especially usefull when routing several sources of input events so that they are not mixed up.

Parameters

History unsiged interger Maximal number of events in queue. For most of the cases 10 should be enough.

Commit

This filter is interally used to commit filtered event back to the application. This filter is automatically added at the end of filter line.

Dump

This filter writes human readable decomposition of event into file (or stdout or strerr). Usefull for debuging.

Parameters

Prefix string Prefix for all lines printed by this filter.
File path to file File to print the decomposition to.

NoRepeat

This filter eats all key repeat events.

PressureToKey

Converts pressure events to key down/up events when pressure exceeds treshold. Usefull for mouse button emulation on touchscreen.

Parameters

Treshold integer Treshold value.
Key key name Name of the key.

ScaleAbs

Performs touchscreen callibration by scaling absolute events to range from 0 to MAX_INT. Some other filters needs this filter to be loaded in order to work properly.

Parameters

MinX integer Minimal X value.
MaxX integer Maximal X value.
MinY integer Minimal Y value.
MaxY integer Maximal Y value.
MinP integer Minimal Pressure.
MaxP integer Maximal Pressure.

SpeedModRel

Slown down relative pointer by Xmod and Ymod.

Parameters

Xmod integer Coeficient for the X coordinate.
Ymod integer Coeficient for the Y coordinate.

WeightedAverageAbs

This filter does weighted average with logarithmic weights of absolute X, Y and pressure samples.
TODO: This filter wasn't tested yet.

Parameters

Samples integer Number of samples to hold in history. Practically it should be something between 1 and 5.

Mirror

This filter mirrors relative and absolute events. For mirroring absolute events filter ScaleAbs must be loaded before this filter.

Parameters

MirrorRelX bool Mirrors relative X events by changing the sign.
MirrorRelY bool Mirrors relative Y events by changing the sign.
MirrorAbsX bool Mirrors Absolute X events.
MirrorAbsY bool Mirrors Absolute Y events.

Rotate

Rotates absolute or relative events by exchanging X and Y coordinates.

Parameters

RotateAbs bool Exchange X and Y for absolute events.
RotateRel bool Exchange X and Y for relative events.

 


copyright © metan 2009