Home
last modified time | relevance | path

Searched refs:nfingers (Results 1 – 9 of 9) sorted by relevance

/third_party/libinput/test/
Dtest-touchpad-tap.c66 int nfingers = (_i % 3) + 1, /* ranged test */ in START_TEST() local
71 if (nfingers > litest_slot_count(dev)) in START_TEST()
79 switch (nfingers) { in START_TEST()
110 switch (nfingers) { in START_TEST()
122 switch (nfingers) { in START_TEST()
207 int nfingers = (_i % 3) + 1, /* ranged test */ in START_TEST() local
212 if (nfingers > litest_slot_count(dev)) in START_TEST()
219 switch (nfingers) { in START_TEST()
236 switch (nfingers) { in START_TEST()
247 switch (nfingers) { in START_TEST()
[all …]
Dtest-gestures.c816 test_gesture_hold(int nfingers) in test_gesture_hold() argument
821 if (litest_slot_count(dev) < nfingers) in test_gesture_hold()
826 switch (nfingers) { in test_gesture_hold()
848 nfingers); in test_gesture_hold()
853 switch (nfingers) { in test_gesture_hold()
873 nfingers); in test_gesture_hold()
880 test_gesture_hold_cancel(int nfingers) in test_gesture_hold_cancel() argument
884 int last_finger = (nfingers - 1); in test_gesture_hold_cancel()
886 if (litest_slot_count(dev) < nfingers) in test_gesture_hold_cancel()
891 switch (nfingers) { in test_gesture_hold_cancel()
[all …]
Dtest-touchpad-buttons.c925 int nfingers = _i; /* ranged test */ in START_TEST() local
935 if (nfingers > 1) { in START_TEST()
944 if (nfingers > 2) { in START_TEST()
962 switch (nfingers) { in START_TEST()
964 if (nslots >= nfingers) in START_TEST()
968 if (nslots >= nfingers) in START_TEST()
985 if (nfingers > 3) { in START_TEST()
994 if (nfingers > 2) { in START_TEST()
Dlitest.h773 int nfingers);
870 int nfingers);
Dlitest.c3700 int nfingers) in litest_is_gesture_event() argument
3710 if (nfingers != -1) in litest_is_gesture_event()
3712 nfingers); in litest_is_gesture_event()
3719 int nfingers) in litest_assert_gesture_event() argument
3726 litest_is_gesture_event(event, type, nfingers); in litest_assert_gesture_event()
/third_party/libinput/tools/
Dlibinput-debug-gui.c150 int nfingers; member
155 int nfingers; member
162 int nfingers; member
526 for (int i = 0; i < w->swipe.nfingers; i++) { in draw_gestures()
544 if (w->pinch.nfingers > 0) { in draw_gestures()
569 hold_alpha = (w->hold.active && i <= w->hold.nfingers) ? 1 : .5; in draw_gestures()
1546 int nfingers; in handle_event_swipe() local
1549 nfingers = libinput_event_gesture_get_finger_count(g); in handle_event_swipe()
1553 w->swipe.nfingers = nfingers; in handle_event_swipe()
1564 w->swipe.nfingers = 0; in handle_event_swipe()
[all …]
/third_party/libinput/src/
Devdev-mt-touchpad-buttons.c1109 unsigned int nfingers = 0; in tp_clickfinger_set_button() local
1124 nfingers++; in tp_clickfinger_set_button()
1134 if (nfingers != 2) in tp_clickfinger_set_button()
1138 nfingers = 2; in tp_clickfinger_set_button()
1140 nfingers = 1; in tp_clickfinger_set_button()
1143 switch (nfingers) { in tp_clickfinger_set_button()
Devdev-mt-touchpad-tap.c125 int nfingers, in tp_tap_notify() argument
136 if (nfingers < 1 || nfingers > 3) in tp_tap_notify()
139 button = button_map[tp->tap.map][nfingers - 1]; in tp_tap_notify()
142 tp->tap.buttons_pressed |= (1 << nfingers); in tp_tap_notify()
144 tp->tap.buttons_pressed &= ~(1 << nfingers); in tp_tap_notify()
/third_party/libinput/patch/diff_libinput_mmi/libinput/
Dlibinput_0000.diff2388 int nfingers,
2400 button = button_map[tp->tap.map][nfingers - 1];
2407 tp->tap.buttons_pressed |= (1 << nfingers);
2409 tp->tap.buttons_pressed &= ~(1 << nfingers);