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