blob: 2d727f300869651dec5585734111a41a3338660d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef __TS_FILTER_GROUP_H__
#define __TS_FILTER_GROUP_H__
#include <linux/input/touchscreen/ts_filter.h>
/*
* Touchscreen group filter.
*
* Copyright (C) 2008,2009 by Openmoko, Inc.
* Author: Nelson Castillo <arhuaco@freaks-unidos.net>
*
*/
struct ts_filter_group_configuration {
/* Size of the filter. */
int length;
/*
* If two points are separated by this distance or less they
* are considered to be members of the same group.
*/
int close_enough;
/* Minimum allowed size for the biggest group in the sample set. */
int threshold;
/*
* Number of times we try to get a group of points with at least
* threshold points.
*/
int attempts;
/* Generic filter configuration. */
struct ts_filter_configuration config;
};
extern const struct ts_filter_api ts_filter_group_api;
#endif
|