Guest User

Untitled

a guest
Mar 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. //for(i=0;i<ATMEL_REPORT_POINTS; i++)
  2. // if(g_tp->msg[i].z != 0)
  3. // pts++;
  4. //if(pts > 0)
  5. //{
  6. // input_report_key(g_tp->input, BTN_TOUCH, 1);
  7. //} else
  8. //{
  9. // input_report_key(g_tp->input, BTN_TOUCH, 0);
  10. //}
  11.  
  12. for(i=0;i<ATMEL_REPORT_POINTS;i++)
  13. {
  14. if (g_tp->msg[i].z == -1)
  15. continue;
  16.  
  17. input_report_abs(g_tp->input, ABS_MT_TOUCH_MAJOR, g_tp->msg[i].z$
  18. input_report_abs(g_tp->input, ABS_MT_WIDTH_MAJOR, g_tp->msg[i].w$
  19. input_report_abs(g_tp->input, ABS_MT_POSITION_X, g_tp->msg[i].co$
  20. input_report_abs(g_tp->input, ABS_MT_POSITION_Y, g_tp->msg[i].co$
  21. input_report_abs(g_tp->input, ABS_MT_TRACKING_ID, i);
  22. MY_INFO_PRINTK( 1,"INFO_LEVEL:" "i %d : x %d y %d z %d w %d\n",i$
  23. input_report_key(g_tp->input, BTN_TOUCH, 1);
  24. input_mt_sync(g_tp->input);
  25.  
  26. if (g_tp->msg[i].z == 0){
  27. g_tp->msg[i].z = -1;
  28. input_report_key(g_tp->input, BTN_TOUCH, 0);
  29. }
Add Comment
Please, Sign In to add comment