Lines Matching refs:axes
239 /* Set the data to the previous value for unset absolute axes. The values
280 dce->valuators[i].min = slave->valuator->axes[i].min_value;
281 dce->valuators[i].max = slave->valuator->axes[i].max_value;
282 dce->valuators[i].resolution = slave->valuator->axes[i].resolution;
283 dce->valuators[i].mode = slave->valuator->axes[i].mode;
284 dce->valuators[i].name = slave->valuator->axes[i].label;
285 dce->valuators[i].scroll = slave->valuator->axes[i].scroll;
346 pDev->valuator->axes + 0,
353 pDev->valuator->axes + 1,
358 /* other axes are left as-is */
500 axes[j] : NULL;
573 memcpy(buff, &v->axes[i].min_value, sizeof(INT32));
575 memcpy(buff, &v->axes[i].max_value, sizeof(INT32));
645 axis = pDev->valuator->axes + axisNum;
761 int xrange = v->axes[0].max_value - v->axes[0].min_value + 1;
762 int yrange = v->axes[1].max_value - v->axes[1].min_value + 1;
772 if (v->axes[0].resolution != 0 && v->axes[1].resolution != 0)
773 resolution_ratio = 1.0 * v->axes[0].resolution/v->axes[1].resolution;
795 v->axes[0].min_value < v->axes[0].max_value &&
796 v->axes[1].min_value < v->axes[1].max_value) {
800 /* calc other axes, clip, drop back into valuators */
855 NULL, dev->valuator->axes + 0,
864 NULL, dev->valuator->axes + 1,
892 /* if we have no axes, last.valuators must be in screen coords
909 *screenx = rescaleValuatorAxis(x, dev->valuator->axes + 0, NULL,
911 *screeny = rescaleValuatorAxis(y, dev->valuator->axes + 1, NULL,
968 *devx = rescaleValuatorAxis(*screenx, NULL, dev->valuator->axes + 0,
972 *devy = rescaleValuatorAxis(*screeny, NULL, dev->valuator->axes + 1,
980 dev->valuator->axes + 0, 0, scr->width);
987 dev->valuator->axes + 1, 0, scr->height);
1526 if (dev->valuator->axes[axis].scroll.type == SCROLL_TYPE_NONE)
1532 ax = &dev->valuator->axes[axis];
1685 adj *= pDev->valuator->axes[axis].scroll.increment;
1695 /* First fill out the original event set, with smooth-scrolling axes. */
1703 /* Now turn the smooth-scrolling axes back into emulated button presses
1784 /* ignore relative axes for proximity. */