Lines Matching defs:mtdev
45 #include <mtdev.h>
74 struct mtdev *mtdev;
101 int value = proto_data->cur_slot - proto_data->mtdev->caps.slot.minimum;
125 mtdev_close_delete(proto_data->mtdev);
126 proto_data->mtdev = NULL;
141 proto_data->mtdev = mtdev_new_open(pInfo->fd);
142 if (!proto_data->mtdev) {
144 "failed to create mtdev instance, ignoring touch events\n");
148 proto_data->cur_slot = proto_data->mtdev->caps.slot.value;
503 if (proto_data->mtdev)
504 len = mtdev_get(proto_data->mtdev, pInfo->fd, ev, 1) *
746 struct mtdev *mtdev;
768 mtdev = mtdev_new_open(pInfo->fd);
769 if (!mtdev) {
771 "failed to open mtdev when querying touch capabilities\n");
776 if (mtdev->caps.has_abs[i]) {
809 if (mtdev->caps.slot.maximum > 0)
810 priv->max_touches = mtdev->caps.slot.maximum -
811 mtdev->caps.slot.minimum + 1;
822 if (mtdev->caps.has_abs[i]) {
840 priv->touch_axes[axnum].min = mtdev->caps.abs[i].minimum;
841 priv->touch_axes[axnum].max = mtdev->caps.abs[i].maximum;
844 mtdev->caps.abs[i].resolution * 1000;
855 mtdev_close_delete(mtdev);