Barry Song <21cnbao@xxxxxxxxx> wrote: >>>> + >>>> + fingers = ts->touch_data.touch_fingers & 0x07; >>>> + if (fingers > 0) { >>>> + for (i = 0; i < fingers; i++) { >>>> + /*Get the touch position*/ >>>> + input_report_abs(ts->input_dev, >ABS_MT_POSITION_X, >>>> + >ts->touch_data.point[i].posx); >>>> + input_report_abs(ts->input_dev, >ABS_MT_POSITION_Y, >>>> + >ts->touch_data.point[i].posy); >>>> + >>>> + input_report_key(ts->input_dev, >ABS_MT_TRACKING_ID, >>>> + ts->touch_data.point[i].id); >>>> + input_report_abs(ts->input_dev, >>>> + ABS_MT_TOUCH_MAJOR, >TOUCH_MAJOR_MAX); >>>> + input_report_abs(ts->input_dev, >>>> + ABS_MT_WIDTH_MAJOR, >WIDTH_MAJOR_MAX); >>>> + input_mt_sync(ts->input_dev); >>> >>> Any chance we could use the B flavor of MT protocol? >> >> i am sorry i missed some, what do you mean for B flavor ? > >do you mean API wrappers like input_mt_init_slots(), >input_mt_report_slot_state() ...? > Yes, exactly. Thanks. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html