Lines Matching defs:step
69 void (*run)(struct cursor *cursor, const struct cursor_step *step);
77 static void set_cursor(struct cursor *cursor, const struct cursor_step *step)
79 int enabled = (step->arg ^ count) & 0x1;
90 static void move_cursor(struct cursor *cursor, const struct cursor_step *step)
100 x += cursor->dx * step->arg;
101 y += cursor->dy * step->arg;
144 const struct cursor_step *step = &steps[indx % ARRAY_SIZE(steps)];
149 step->run(cursor, step);
152 /* iterate to next count/step: */
153 if (count < step->repeat) {
160 usleep(1000 * step->msec);