This is in µs and hasn't been in ms for a long time.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tp_button_set_enter_timer(struct tp_dispatch *tp, struct tp_touch *t)
{
libinput_timer_set(&t->button.timer,
- t->millis + DEFAULT_BUTTON_ENTER_TIMEOUT);
+ t->time + DEFAULT_BUTTON_ENTER_TIMEOUT);
}
static void
tp_button_set_leave_timer(struct tp_dispatch *tp, struct tp_touch *t)
{
libinput_timer_set(&t->button.timer,
- t->millis + DEFAULT_BUTTON_LEAVE_TIMEOUT);
+ t->time + DEFAULT_BUTTON_LEAVE_TIMEOUT);
}
/*
return;
libinput_timer_set(&t->scroll.timer,
- t->millis + DEFAULT_SCROLL_LOCK_TIMEOUT);
+ t->time + DEFAULT_SCROLL_LOCK_TIMEOUT);
}
static void
t->was_down = false;
t->state = TOUCH_HOVERING;
t->pinned.is_pinned = false;
- t->millis = time;
+ t->time = time;
tp->queued |= TOUCHPAD_EVENT_MOTION;
}
{
t->dirty = true;
t->state = TOUCH_BEGIN;
- t->millis = time;
+ t->time = time;
t->was_down = true;
tp->nfingers_down++;
t->palm.time = time;
t->palm.state = PALM_NONE;
t->state = TOUCH_END;
t->pinned.is_pinned = false;
- t->millis = time;
+ t->time = time;
t->palm.time = 0;
assert(tp->nfingers_down >= 1);
tp->nfingers_down--;
e->code,
e->value);
t->point.x = e->value;
- t->millis = time;
+ t->time = time;
t->dirty = true;
tp->queued |= TOUCHPAD_EVENT_MOTION;
break;
e->code,
e->value);
t->point.y = e->value;
- t->millis = time;
+ t->time = time;
t->dirty = true;
tp->queued |= TOUCHPAD_EVENT_MOTION;
break;
e->code,
e->value);
t->point.x = e->value;
- t->millis = time;
+ t->time = time;
t->dirty = true;
tp->queued |= TOUCHPAD_EVENT_MOTION;
break;
e->code,
e->value);
t->point.y = e->value;
- t->millis = time;
+ t->time = time;
t->dirty = true;
tp->queued |= TOUCHPAD_EVENT_MOTION;
break;
bool has_ended; /* TRACKING_ID == -1 */
bool dirty;
struct device_coords point;
- uint64_t millis;
+ uint64_t time;
int pressure;
bool is_tool_palm; /* MT_TOOL_PALM */