RE: input:rohm based bu21013 touch panel controller driver support

From
Naveen Kumar GADDIPATI <hidden>
Date
2010-09-07 08:53:54
Reply to
Dmitry Torokhov, 2010-09-06
Hi Dmitry,
-----Original Message-----
From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com]
Sent: Monday, September 06, 2010 10:43 AM
To: Naveen Kumar GADDIPATI
quoted
quoted
quoted
+static bool bu21013_verify_delta(int x1, int y1, int x2, int y2)
+{
+       int delta_x, delta_y;
+       if ((x1 != 0) && (y1 != 0)) {
+               delta_x = x2 - x1;
+               if (x1 > x2)
+                       delta_x = x1 - x2;
+               delta_y = y2 - y1;
+               if (y1 > y2)
+                       delta_y = y1 - y2;
+               if ((delta_x < DELTA_MIN) || (delta_y <
DELTA_MIN))
quoted
quoted
quoted
+                       return false;
If you specify "fuzz" for given axis I think input core will do
this
quoted
quoted
for
you.
	What is fuzz?

It is one of the parameters in input_set_abs_params() calls that
instructs input core to perform filtering on input events.
Here the delta calculation is between two co-ordinates for multi touch case according to the controller specification.
Is the fuzz useful in this case also?

Thanks & Regards,
Naveen
	

Thread (7 messages) 7 messages, 3 authors, last reply 2010-09-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help