Lines Matching full:touch
37 /* set in first byte of touch data packets */
71 /* touch query reply packet */
157 bool touch = data[0] & (1 << i); in parse_multi_touch() local
160 input_mt_report_slot_state(dev, MT_TOOL_FINGER, touch); in parse_multi_touch()
161 if (touch) { in parse_multi_touch()
175 /* emulate single touch events when stylus is out of proximity. in parse_multi_touch()
176 * This is to make single touch backward support consistent in parse_multi_touch()
177 * across all Wacom single touch devices. in parse_multi_touch()
204 /* Early days' single-finger touch models need the following defaults */ in parse_touchquery()
340 /* 2 finger touch packet */ in w8001_interrupt()
467 struct w8001_touch_query touch; in w8001_setup_touch() local
471 /* Touch enabled? */ in w8001_setup_touch()
476 * Some non-touch devices may reply to the touch query. But their in w8001_setup_touch()
477 * second byte is empty, which indicates touch is not supported. in w8001_setup_touch()
487 parse_touchquery(w8001->response, &touch); in w8001_setup_touch()
488 w8001->max_touch_x = touch.x; in w8001_setup_touch()
489 w8001->max_touch_y = touch.y; in w8001_setup_touch()
493 touch.x = w8001->max_pen_x; in w8001_setup_touch()
494 touch.y = w8001->max_pen_y; in w8001_setup_touch()
495 touch.panel_res = W8001_PEN_RESOLUTION; in w8001_setup_touch()
498 input_set_abs_params(dev, ABS_X, 0, touch.x, 0, 0); in w8001_setup_touch()
499 input_set_abs_params(dev, ABS_Y, 0, touch.y, 0, 0); in w8001_setup_touch()
500 input_abs_set_res(dev, ABS_X, touch.panel_res); in w8001_setup_touch()
501 input_abs_set_res(dev, ABS_Y, touch.panel_res); in w8001_setup_touch()
503 switch (touch.sensor_id) { in w8001_setup_touch()
531 0, touch.x, 0, 0); in w8001_setup_touch()
533 0, touch.y, 0, 0); in w8001_setup_touch()
536 input_abs_set_res(dev, ABS_MT_POSITION_X, touch.panel_res); in w8001_setup_touch()
537 input_abs_set_res(dev, ABS_MT_POSITION_Y, touch.panel_res); in w8001_setup_touch()