Home
last modified time | relevance | path

Searched refs:libevdev_has_event_code (Results 1 – 25 of 29) sorted by relevance

12

/third_party/libinput/src/
Devdev.c482 if (!libevdev_has_event_code(device->evdev, in evdev_tag_keyboard()
689 if (!libevdev_has_event_code(evdev->evdev, EV_REL, REL_WHEEL) && in evdev_scroll_get_default_method()
690 !libevdev_has_event_code(evdev->evdev, EV_REL, REL_HWHEEL) && in evdev_scroll_get_default_method()
691 libevdev_has_event_code(evdev->evdev, EV_KEY, BTN_MIDDLE)) in evdev_scroll_get_default_method()
725 if (libevdev_has_event_code(evdev->evdev, EV_KEY, BTN_MIDDLE)) in evdev_scroll_get_default_button()
729 if (libevdev_has_event_code(evdev->evdev, EV_KEY, code)) in evdev_scroll_get_default_button()
733 if (libevdev_has_event_code(evdev->evdev, EV_KEY, BTN_RIGHT)) in evdev_scroll_get_default_button()
895 return (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) && in evdev_need_mtdev()
896 libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y) && in evdev_need_mtdev()
897 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_SLOT)); in evdev_need_mtdev()
[all …]
Devdev-tablet-pad.c603 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel()
608 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel()
613 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel()
618 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel()
640 if (libevdev_has_event_code(device->evdev, EV_KEY, *code)) in pad_init_keys()
759 return libevdev_has_event_code(device->evdev, EV_KEY, code); in evdev_device_tablet_pad_has_key()
781 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_WHEEL)) { in evdev_device_tablet_pad_get_num_rings()
783 if (libevdev_has_event_code(device->evdev, in evdev_device_tablet_pad_get_num_rings()
800 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_RX)) { in evdev_device_tablet_pad_get_num_strips()
802 if (libevdev_has_event_code(device->evdev, in evdev_device_tablet_pad_get_num_strips()
Devdev-tablet.c148 has_axis = (libevdev_has_event_code(evdev, in tablet_device_has_axis()
151 libevdev_has_event_code(evdev, in tablet_device_has_axis()
154 libevdev_has_event_code(evdev, in tablet_device_has_axis()
158 has_axis |= libevdev_has_event_code(evdev, in tablet_device_has_axis()
162 has_axis = libevdev_has_event_code(evdev, in tablet_device_has_axis()
167 has_axis = libevdev_has_event_code(evdev, in tablet_device_has_axis()
923 if (libevdev_has_event_code(evdev, EV_KEY, button)) in copy_button_cap()
1030 if (libevdev_has_event_code(tablet->device->evdev, EV_ABS, in tool_set_bits()
2269 if (!libevdev_has_event_code(device->evdev, EV_KEY, BTN_TOOL_MOUSE) && in tablet_init_proximity_threshold()
2270 !libevdev_has_event_code(device->evdev, EV_KEY, BTN_TOOL_LENS)) in tablet_init_proximity_threshold()
[all …]
Devdev-fallback.c860 if (libevdev_has_event_code(device->evdev, EV_KEY, button) && in fallback_any_button_down()
1570 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) || in fallback_dispatch_init_slots()
1571 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y)) in fallback_dispatch_init_slots()
1609 dispatch->mt.has_palm = libevdev_has_event_code(evdev, in fallback_dispatch_init_slots()
1634 if (!libevdev_has_event_code(device->evdev, EV_ABS, ABS_X)) in fallback_dispatch_init_abs()
1736 if (libevdev_has_event_code(device->evdev, EV_KEY, BTN_LEFT) && in fallback_dispatch_create()
1737 libevdev_has_event_code(device->evdev, EV_KEY, BTN_RIGHT)) { in fallback_dispatch_create()
1738 bool has_middle = libevdev_has_event_code(device->evdev, in fallback_dispatch_create()
Devdev-totem.c723 has_xy = libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) && in totem_reject_device()
724 libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y); in totem_reject_device()
725 has_slot = libevdev_has_event_code(evdev, EV_ABS, ABS_MT_SLOT); in totem_reject_device()
726 has_tool_dial = libevdev_has_event_code(evdev, EV_ABS, ABS_MT_TOOL_TYPE) && in totem_reject_device()
Devdev-mt-touchpad-thumb.c423 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_MT_PRESSURE)) { in tp_init_thumb()
432 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_MT_TOUCH_MAJOR)) { in tp_init_thumb()
Devdev-mt-touchpad-buttons.c905 if (!libevdev_has_event_code(device->evdev, EV_KEY, BTN_MIDDLE)) { in tp_init_middlebutton_emulation()
933 if (libevdev_has_event_code(device->evdev, EV_KEY, BTN_MIDDLE) || in tp_init_buttons()
934 libevdev_has_event_code(device->evdev, EV_KEY, BTN_RIGHT)) { in tp_init_buttons()
938 } else if (libevdev_has_event_code(device->evdev, EV_KEY, BTN_LEFT) && in tp_init_buttons()
Devdev-mt-touchpad.c2918 if (libevdev_has_event_code(device->evdev, in tp_init_slots()
3298 if (!libevdev_has_event_code(device->evdev, EV_ABS, ABS_MT_PRESSURE)) { in tp_init_palmdetect_pressure()
3373 if (libevdev_has_event_code(device->evdev, in tp_init_palmdetect()
3415 if (!libevdev_has_event_code(evdev, EV_ABS, ABS_X)) in tp_pass_sanity_check()
3418 if (!libevdev_has_event_code(evdev, EV_KEY, BTN_TOUCH)) in tp_pass_sanity_check()
3421 if (!libevdev_has_event_code(evdev, EV_KEY, BTN_TOOL_FINGER)) in tp_pass_sanity_check()
3505 if (!libevdev_has_event_code(device->evdev, EV_ABS, code)) { in tp_init_pressure()
3563 if (!libevdev_has_event_code(device->evdev, in tp_init_touch_size()
/third_party/libevdev/libevdev/
Dlibevdev.c99 if (libevdev_has_event_code(dev, type, code)) in init_event_queue()
109 if (libevdev_has_event_code(dev, EV_ABS, code)) in init_event_queue()
339 !libevdev_has_event_code(dev, EV_ABS, ABS_MT_TRACKING_ID)) in reset_tracking_ids()
366 if (libevdev_has_event_code(dev, EV_ABS, ABS_RESERVED) || in init_slots()
367 !libevdev_has_event_code(dev, EV_ABS, ABS_MT_SLOT)) { in init_slots()
697 !libevdev_has_event_code(dev, EV_ABS, axis)) in sync_mt_state()
835 !libevdev_has_event_code(dev, EV_ABS, axis)) in push_mt_sync_events()
946 libevdev_has_event_code(dev, EV_ABS, ABS_MT_SLOT)) { in sync_state()
998 if (libevdev_has_event_code(dev, EV_ABS, i)) in update_mt_state()
1095 if (!libevdev_has_event_code(dev, ev->type, ev->code)) in sanitize_event()
[all …]
Dlibevdev.sym65 libevdev_has_event_code;
Dlibevdev.h1424 int libevdev_has_event_code(const struct libevdev *dev, unsigned int type, unsigned int code);
Dlibevdev-uinput.c119 if (!libevdev_has_event_code(dev, type, code)) in set_evbits()
/third_party/libinput/test/
Dtest-pad.c74 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST()
168 if (libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST()
190 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_0)) in START_TEST()
199 ck_assert(!libevdev_has_event_code(dev->evdev, in START_TEST()
204 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST()
248 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_LEFT)) in START_TEST()
254 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST()
344 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST()
924 return (libevdev_has_event_code(evdev, EV_KEY, KEY_BUTTONCONFIG) || in pad_has_keys()
925 libevdev_has_event_code(evdev, EV_KEY, KEY_ONSCREEN_KEYBOARD) || in pad_has_keys()
[all …]
Dtest-keyboard.c277 evdev_has = libevdev_has_event_code(dev->evdev, EV_KEY, code); in START_TEST()
310 if (!libevdev_has_event_code(dev->evdev, EV_KEY, KEY_A)) in START_TEST()
343 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST()
373 if (!libevdev_has_event_code(dev->evdev, EV_KEY, KEY_A) || in START_TEST()
374 !libevdev_has_event_code(dev->evdev, EV_KEY, KEY_LEFTSHIFT)) in START_TEST()
Dtest-touchpad-tap.c940 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST()
1677 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST()
1684 if (!libevdev_has_event_code(dev->evdev, EV_ABS, ABS_MT_PRESSURE)) in START_TEST()
1738 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST()
1745 if (libevdev_has_event_code(dev->evdev, EV_ABS, ABS_MT_PRESSURE)) in START_TEST()
1749 libevdev_has_event_code(dev->evdev, EV_ABS, ABS_PRESSURE)) in START_TEST()
1792 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST()
1842 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST()
1892 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST()
2768 if (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_PRESSURE)) in touchpad_has_palm_pressure()
Dtest-pointer.c657 ck_assert(libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL) || in START_TEST()
658 libevdev_has_event_code(dev->evdev, EV_REL, REL_HWHEEL)); in START_TEST()
660 if (libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL)) { in START_TEST()
668 if (libevdev_has_event_code(dev->evdev, EV_REL, REL_HWHEEL)) { in START_TEST()
725 ck_assert(libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL) || in START_TEST()
726 libevdev_has_event_code(dev->evdev, EV_REL, REL_HWHEEL)); in START_TEST()
728 if (libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL)) { in START_TEST()
736 if (libevdev_has_event_code(dev->evdev, EV_REL, REL_HWHEEL)) { in START_TEST()
755 if (!libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL)) in START_TEST()
Dtest-gestures.c180 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP) || in START_TEST()
270 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP) || in START_TEST()
460 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_QUADTAP) || in START_TEST()
Dtest-tablet.c42 if (libevdev_has_event_code(dev->evdev, EV_KEY, BTN_STYLUS)) in pick_stylus_or_btn0()
45 if (libevdev_has_event_code(dev->evdev, EV_KEY, BTN_0)) in pick_stylus_or_btn0()
180 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST()
194 if (!libevdev_has_event_code(evdev, EV_KEY, code)) in START_TEST()
1090 if (!libevdev_has_event_code(dev->evdev, EV_KEY, button)) in START_TEST()
2061 if (!libevdev_has_event_code(dev->evdev, in START_TEST()
2778 return libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_MOUSE) && in tablet_has_mouse()
2815 if (!libevdev_has_event_code(dev->evdev, in START_TEST()
2934 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_RUBBER)) in START_TEST()
3054 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_RUBBER)) in START_TEST()
[all …]
Dtest-switch.c69 if (!libevdev_has_event_code(dev->evdev, EV_SW, SW_LID)) in START_TEST()
95 if (!libevdev_has_event_code(dev->evdev, EV_SW, SW_TABLET_MODE)) in START_TEST()
1351 if (!libevdev_has_event_code(sw->evdev, EV_SW, SW_DOCK)) in START_TEST()
Dtest-touchpad-buttons.c40 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_LEFT)) in START_TEST()
257 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST()
341 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_QUADTAP)) in START_TEST()
386 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST()
Dtest-touchpad.c1674 return libevdev_has_event_code(dev->evdev, EV_ABS, ABS_MT_TOOL_TYPE); in touchpad_has_tool_palm()
1798 if (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_PRESSURE)) in touchpad_has_palm_pressure()
2169 if (!libevdev_has_event_code(evdev, EV_ABS, ABS_MT_TOUCH_MAJOR)) in touchpad_has_touch_size()
2281 if (libevdev_has_event_code(dev->evdev, in START_TEST()
3563 if (!libevdev_has_event_code(dev->evdev, EV_KEY, map[finger_count])) in START_TEST()
5916 if (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_PRESSURE)) in touchpad_has_pressure()
5919 if (libevdev_has_event_code(evdev, EV_ABS, ABS_PRESSURE) && in touchpad_has_pressure()
5920 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_SLOT)) in touchpad_has_pressure()
6975 if (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X)) in START_TEST()
6977 if (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y)) in START_TEST()
Dlitest.c1801 if (!libevdev_has_event_code(d->evdev, EV_ABS, code)) in litest_add_device_with_overrides()
1803 if (libevdev_has_event_code(d->evdev, EV_ABS, code)) { in litest_add_device_with_overrides()
1809 if (!libevdev_has_event_code(d->evdev, EV_ABS, code)) in litest_add_device_with_overrides()
1811 if (libevdev_has_event_code(d->evdev, EV_ABS, code)) { in litest_add_device_with_overrides()
1958 if (!libevdev_has_event_code(d->evdev, type, code)) in litest_event()
/third_party/libevdev/
DREADME_zh.md52 !libevdev_has_event_code(dev, EV_KEY, BTN_LEFT)) {
DREADME.md52 !libevdev_has_event_code(dev, EV_KEY, BTN_LEFT)) {
/third_party/libevdev/export_include/libevdev/
Dlibevdev.h1424 int libevdev_has_event_code(const struct libevdev *dev, unsigned int type, unsigned int code);

12