Lines Matching defs:corner
398 struct input_mt_pos corner[4];
429 /* top-left corner */
430 corner[0].x =
433 corner[0].y =
437 /* top-right corner */
438 corner[1].x =
441 corner[1].y =
445 /* bottom-right corner */
446 corner[2].x =
449 corner[2].y =
453 /* bottom-left corner */
454 corner[3].x =
457 corner[3].y =
464 corner[i].x = priv->x_max - corner[i].x;
471 corner[i].y = priv->y_max - corner[i].y;
475 * We only select a corner for the second touch once per 2 finger
476 * touch sequence to avoid the chosen corner (and thus the coordinates)
480 /* Find corner closest to our st coordinates */
483 int dx = fields->st.x - corner[i].x;
484 int dy = fields->st.y - corner[i].y;
492 /* And select the opposite corner to use for the 2nd touch */
497 fields->mt[1] = corner[priv->second_touch];