Home
last modified time | relevance | path

Searched refs:ntouches (Results 1 - 5 of 5) sorted by relevance

/third_party/libinput/src/
H A Devdev-mt-touchpad-gestures.c1056 unsigned int ntouches; in tp_gesture_handle_state_none() local
1059 ntouches = tp_gesture_get_active_touches(tp, touches, 4); in tp_gesture_handle_state_none()
1064 if (ntouches == 0) in tp_gesture_handle_state_none()
1067 if (ntouches == 1) { in tp_gesture_handle_state_none()
1078 if (ntouches == 2) in tp_gesture_handle_state_none()
1101 if (ntouches > 2) { in tp_gesture_handle_state_none()
1104 for (i = 1; i < ntouches && i < tp->num_slots; i++) { in tp_gesture_handle_state_none()
H A Devdev-mt-touchpad.c255 return &tp->touches[min(tp->slot, tp->ntouches - 1)]; in tp_current_touch()
261 assert(slot < tp->ntouches); in tp_get_touch()
702 for (i = start; i < tp->ntouches; i++) { in tp_process_fake_touches()
1277 for (i = tp->ntouches - 1; i >= 0; i--) { in tp_unhover_pressure()
1376 for (i = tp->ntouches - 1; i >= 0; i--) { in tp_unhover_fake_touches()
1436 for (i = start; i < tp->ntouches; i++) { in tp_position_fake_touches()
2882 int ntouches; in tp_init_slots() member
2937 n_btn_tool_touches = m->ntouches; in tp_init_slots()
2942 tp->ntouches = max(tp->num_slots, n_btn_tool_touches); in tp_init_slots()
2943 tp->touches = zalloc(tp->ntouches * sizeo in tp_init_slots()
[all...]
H A Devdev-mt-touchpad.h304 unsigned int ntouches; /* no slots inc. fakes */ member
305 struct tp_touch *touches; /* len == ntouches */
549 for (unsigned int _i = 0; _i < (_tp)->ntouches && (_t = &(_tp)->touches[_i]); _i++)
H A Devdev.c2751 int ntouches; in evdev_device_get_touch_count() local
2756 ntouches = libevdev_get_num_slots(device->evdev); in evdev_device_get_touch_count()
2757 if (ntouches == -1) { in evdev_device_get_touch_count()
2762 ntouches = 0; in evdev_device_get_touch_count()
2764 ntouches = 1; in evdev_device_get_touch_count()
2767 return ntouches; in evdev_device_get_touch_count()
H A Devdev-mt-touchpad-tap.c1392 return min(tp->ntouches, 3U); /* we only do up to 3 finger tap */ in tp_tap_config_count()

Completed in 13 milliseconds