Lines Matching refs:history
255 free(ti->history);
256 ti->history = NULL;
375 * Allocate the event history for this touch pointer. Calling this on a
376 * touchpoint that already has an event history does nothing but counts as
384 if (ti->history)
387 ti->history = calloc(TOUCH_HISTORY_SIZE, sizeof(*ti->history));
389 if (ti->history)
391 return ti->history != NULL;
397 free(ti->history);
398 ti->history = NULL;
404 * Store the given event on the event history (if one exists)
405 * A touch event history consists of one TouchBegin and several TouchUpdate
414 if (!ti->history)
426 return; /* no TouchEnd events in the history */
431 /* We only store real events in the history */
435 ti->history[ti->history_elements++] = *ev;
439 DebugF("source device %d: history size %zu overflowing for touch %u\n",
449 if (!ti->history)
452 DeliverDeviceClassesChangedEvent(ti->sourceid, ti->history[0].time);
455 DeviceEvent *ev = &ti->history[i];
460 We're replaying ti->history which contains the TouchBegin +