hi
my touch pannel driver use input system with event interface
when pen down ,i input the x valuer y value and pressure value,just
below
if((x == 0)&&(y == 0)&&(pressure == 0)){
x = last_x;
y = last_y;
} else {
x = ((x- 80)*240)/(1300-80);
y = ((y - 380)*320)/(1600-400);
}
if (x != last_x) {
printk("the input x value is %d\n",x);
input_report_abs(ts->idev, ABS_X, x);
last_x = x;
}
if (y != last_y) {
printk("the input y value is %d\n",y);
input_report_abs(ts->idev, ABS_Y, y);
last_y = y;
}
if (pressure == last_press)
pressure--;
input_report_abs(ts->idev, ABS_PRESSURE, pressure & 0xfff);
and when pen up
i input the pressure value as 0,just below
input_report_abs(ts->idev, ABS_PRESSURE, 0);
but ,android's touch function do not work ,who can help me
thanks
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---