Lines Matching refs:edge
75 uint32_t edge = EDGE_NONE;
81 edge |= EDGE_RIGHT;
84 edge |= EDGE_BOTTOM;
86 return edge;
96 * edge scrolling. A finger resting on the button areas is
119 t->scroll.edge = EDGE_NONE;
122 t->scroll.edge = tp_touch_get_edge(tp, t);
129 t->scroll.edge = EDGE_NONE;
159 "edge-scroll: touch %d: unexpected scroll event %d in none state\n",
175 "edge-scroll: touch %d: unexpected scroll event %d in edge new state\n",
180 t->scroll.edge &= tp_touch_get_edge(tp, t);
181 if (!t->scroll.edge)
213 "edge-scroll: touch %d: unexpected scroll event %d in edge state\n",
219 if (t->scroll.edge == (EDGE_RIGHT | EDGE_BOTTOM)) {
220 t->scroll.edge &= tp_touch_get_edge(tp, t);
221 if (!t->scroll.edge)
289 "edge-scroll: touch %d state %s → %s → %s\n",
324 /* 7mm edge size */
437 /* only scroll with the finger in the previous edge */
438 if (t->scroll.edge &&
439 (tp_touch_get_edge(tp, t) & t->scroll.edge) == 0)
442 switch (t->scroll.edge) {
522 t->scroll.edge = EDGE_NONE;