Lines Matching defs:touch

663 	int limit = imax(input->touch.min_pressure, 1);
675 struct touch_state *touch = &input->touch;
680 if (pressure == 0 || pressure != touch->pressure) {
685 touch->pressure = pressure;
686 touch->sync |= SYNC_PRESSURE;
688 if (contacts != touch->contacts) {
689 touch->contacts = contacts;
690 touch->sync |= SYNC_CONTACTS;
713 /* Is this a new touch? */
764 wsmouse_touch(sc, value, input->touch.contacts);
768 if (value != input->touch.contacts) {
769 input->touch.contacts = value;
770 input->touch.sync |= SYNC_CONTACTS;
774 if (value != input->touch.width) {
775 input->touch.width = value;
776 input->touch.sync |= SYNC_TOUCH_WIDTH;
795 /* Make touch and motion state consistent. */
800 struct touch_state *touch = &input->touch;
802 if (touch->pressure == 0) {
814 if (touch->prev_contacts == 0)
815 touch->sync &= ~SYNC_PRESSURE;
819 if (touch->sync & SYNC_CONTACTS)
823 if ((touch->sync & SYNC_PRESSURE) && touch->min_pressure) {
824 if (touch->pressure >= input->filter.pressure_hi)
825 touch->min_pressure = input->filter.pressure_lo;
826 else if (touch->pressure < input->filter.pressure_lo)
827 touch->min_pressure = input->filter.pressure_hi;
921 /* Derive touch and motion state from MT state. */
1057 struct touch_state *touch = &input->touch;
1059 if (touch->sync & SYNC_PRESSURE)
1060 wsmouse_evq_put(evq, ABS_Z_EV, touch->pressure);
1061 if (touch->sync & SYNC_CONTACTS)
1062 wsmouse_evq_put(evq, ABS_W_EV, touch->contacts);
1063 if ((touch->sync & SYNC_TOUCH_WIDTH)
1065 wsmouse_evq_put(evq, WSCONS_EVENT_TOUCH_WIDTH, touch->width);
1074 t_sync = (input->touch.sync & SYNC_CONTACTS);
1092 printf(" t:%d", input->touch.contacts);
1123 input->touch.sync = 0;
1124 input->touch.prev_contacts = input->touch.contacts;
1154 if (input->touch.sync)
1174 if (input->touch.sync)
1523 input->touch.min_pressure = input->filter.pressure_hi;
1529 input->touch.min_pressure = val;
1685 memset(&input->touch, 0, sizeof(struct touch_state));
1686 input->touch.min_pressure = input->filter.pressure_hi;