Lines Matching defs:touch
952 FreeDeviceClass(XITouchClass, (void *) &classes->touch);
1654 * @mode The mode of the touch device (XIDirectTouch or XIDependentTouch).
1655 * @num_axes The number of touch valuator axes.
1661 TouchClassPtr touch;
1665 BUG_RETURN_VAL(device->touch != NULL, FALSE);
1674 "Device '%s' has %d touch axes, only using first %d.\n",
1679 touch = calloc(1, sizeof(*touch));
1680 if (!touch)
1683 touch->max_touches = max_touches;
1686 touch->touches = calloc(max_touches, sizeof(*touch->touches));
1687 if (!touch->touches)
1689 touch->num_touches = max_touches;
1691 TouchInitTouchPoint(touch, device->valuator, i);
1693 touch->mode = mode;
1694 touch->sourceid = device->id;
1696 device->touch = touch;
1698 device->last.num_touches = touch->num_touches;
1699 for (i = 0; i < touch->num_touches; i++)
1705 for (i = 0; i < touch->num_touches; i++)
1708 free(touch->touches);
1709 free(touch);