}
void
-tp_thumb_detect(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time)
+tp_thumb_update_touch(struct tp_dispatch *tp,
+ struct tp_touch *t,
+ uint64_t time)
{
/* once a thumb, always a thumb, once ruled out always ruled out */
if (!tp->thumb.detect_thumbs ||
}
void
-tp_detect_thumb_while_moving(struct tp_dispatch *tp)
+tp_thumb_update_multifinger(struct tp_dispatch *tp)
{
struct tp_touch *t;
struct tp_touch *first = NULL,
tp_motion_history_reset(t);
}
- tp_thumb_detect(tp, t, time);
+ tp_thumb_update_touch(tp, t, time);
tp_palm_detect(tp, t, time);
tp_detect_wobbling(tp, t, time);
tp_motion_hysteresis(tp, t);
if (have_new_touch &&
tp->nfingers_down == 2 &&
speed_exceeded_count > 5)
- tp_detect_thumb_while_moving(tp);
+ tp_thumb_update_multifinger(tp);
if (restart_filter)
filter_restart(tp->device->pointer.filter, tp, time);
tp_thumb_reset(struct tp_dispatch *tp, struct tp_touch *t);
void
-tp_thumb_detect(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time);
+tp_thumb_update_touch(struct tp_dispatch *tp,
+ struct tp_touch *t,
+ uint64_t time);
void
tp_detect_thumb_while_moving(struct tp_dispatch *tp);
void
+tp_thumb_update_multifinger(struct tp_dispatch *tp);
+
+void
tp_init_thumb(struct tp_dispatch *tp);
void