Lines Matching defs:index
106 unsigned int index = (tablet->history.index + 1) %
109 tablet->history.samples[index] = *axes;
110 tablet->history.index = index;
119 * Return a previous axis state, where index of 0 means "most recent", 1 is
123 tablet_history_get(const struct tablet_dispatch *tablet, unsigned int index)
127 assert(index < sz);
128 assert(index < tablet->history.count);
130 index = (tablet->history.index + sz - index) % sz;
131 return &tablet->history.samples[index];