Lines Matching refs:touch

666 	int limit = imax(input->touch.min_pressure, 1);
678 struct touch_state *touch = &input->touch;
683 if (pressure == 0 || pressure != touch->pressure) {
688 touch->pressure = pressure;
689 touch->sync |= SYNC_PRESSURE;
691 if (contacts != touch->contacts) {
692 touch->contacts = contacts;
693 touch->sync |= SYNC_CONTACTS;
716 /* Is this a new touch? */
767 wsmouse_touch(sc, value, input->touch.contacts);
771 if (value != input->touch.contacts) {
772 input->touch.contacts = value;
773 input->touch.sync |= SYNC_CONTACTS;
777 if (value != input->touch.width) {
778 input->touch.width = value;
779 input->touch.sync |= SYNC_TOUCH_WIDTH;
798 /* Make touch and motion state consistent. */
803 struct touch_state *touch = &input->touch;
805 if (touch->pressure == 0) {
817 if (touch->prev_contacts == 0)
818 touch->sync &= ~SYNC_PRESSURE;
822 if (touch->sync & SYNC_CONTACTS)
826 if ((touch->sync & SYNC_PRESSURE) && touch->min_pressure) {
827 if (touch->pressure >= input->filter.pressure_hi)
828 touch->min_pressure = input->filter.pressure_lo;
829 else if (touch->pressure < input->filter.pressure_lo)
830 touch->min_pressure = input->filter.pressure_hi;
924 /* Derive touch and motion state from MT state. */
1060 struct touch_state *touch = &input->touch;
1062 if (touch->sync & SYNC_PRESSURE)
1063 wsmouse_evq_put(evq, ABS_Z_EV, touch->pressure);
1064 if (touch->sync & SYNC_CONTACTS)
1065 wsmouse_evq_put(evq, ABS_W_EV, touch->contacts);
1066 if ((touch->sync & SYNC_TOUCH_WIDTH)
1068 wsmouse_evq_put(evq, WSCONS_EVENT_TOUCH_WIDTH, touch->width);
1077 t_sync = (input->touch.sync & SYNC_CONTACTS);
1095 printf(" t:%d", input->touch.contacts);
1126 input->touch.sync = 0;
1127 input->touch.prev_contacts = input->touch.contacts;
1157 if (input->touch.sync)
1177 if (input->touch.sync)
1526 input->touch.min_pressure = input->filter.pressure_hi;
1532 input->touch.min_pressure = val;
1688 memset(&input->touch, 0, sizeof(struct touch_state));
1689 input->touch.min_pressure = input->filter.pressure_hi;