Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //for(i=0;i<ATMEL_REPORT_POINTS; i++)
- // if(g_tp->msg[i].z != 0)
- // pts++;
- //if(pts > 0)
- //{
- // input_report_key(g_tp->input, BTN_TOUCH, 1);
- //} else
- //{
- // input_report_key(g_tp->input, BTN_TOUCH, 0);
- //}
- for(i=0;i<ATMEL_REPORT_POINTS;i++)
- {
- if (g_tp->msg[i].z == -1)
- continue;
- input_report_abs(g_tp->input, ABS_MT_TOUCH_MAJOR, g_tp->msg[i].z$
- input_report_abs(g_tp->input, ABS_MT_WIDTH_MAJOR, g_tp->msg[i].w$
- input_report_abs(g_tp->input, ABS_MT_POSITION_X, g_tp->msg[i].co$
- input_report_abs(g_tp->input, ABS_MT_POSITION_Y, g_tp->msg[i].co$
- input_report_abs(g_tp->input, ABS_MT_TRACKING_ID, i);
- MY_INFO_PRINTK( 1,"INFO_LEVEL:" "i %d : x %d y %d z %d w %d\n",i$
- input_report_key(g_tp->input, BTN_TOUCH, 1);
- input_mt_sync(g_tp->input);
- if (g_tp->msg[i].z == 0){
- g_tp->msg[i].z = -1;
- input_report_key(g_tp->input, BTN_TOUCH, 0);
- }
Add Comment
Please, Sign In to add comment