4.0-touch调试


touch调试比较麻烦,从google找到一个xda的帖子,提供了很多帮助:
http://forum.xda-developers.com/showthread.php?t=1328515
调通以后才发现,原来这个ITE7260的touch driver写得是这么的烂,
以至于在只有一点的时候还会去上报第二点的release数据。 增加了
BTN_TOUCH和ABS_PRESSURE以后,touch可以识别了。
input_report_key(ts->input_dev, BTN_TOUCH, 1); 
input_report_key(ts->input_dev, BTN_TOUCH, 0);
input_report_key(ts->input_dev, ABS_PRESSURE, 255); 
input_report_key(ts->input_dev, ABS_PRESSURE, 0);

ABS_MT_TRACKING_ID也必须要设置:
input_set_abs_params(priv->input_dev, ABS_MT_TRACKING_ID, 0, 5, 0, 0); //jeff

你可能感兴趣的:(android)