Lines Matching defs:margin
686 * hysteresis center and the margin. If 'in' is within 'margin' of center,
688 * return a point on the edge of the new margin (which is an ellipse, usually
689 * a circle). So for a point x in the space outside c + margin we return r:
695 * move into one direction we lag the real coordinates by 'margin' but any
697 * margin - we get responsive movement. Once we move back into the other
702 * Otherwise, the center has a dead zone of size margin around it and the
703 * first reachable point is the margin edge.
707 * @param margin Hysteresis width (on each side)
714 const struct device_coords *margin)
720 int a = margin->x;
721 int b = margin->y;
740 /* Which means anything less than 1 is within the elliptical margin */
748 * Now calculate the x,y coordinates on the edge of the margin ellipse
765 * touching the margin ellipse at some point: (±lag_x,±lag_y)