Home
last modified time | relevance | path

Searched refs:evdev (Results 1 – 25 of 70) sorted by relevance

123

/third_party/libinput/src/
Devdev.c317 int evdev; in evdev_device_led_update() member
332 ev[i].code = map[i].evdev; in evdev_device_led_update()
490 bustype = libevdev_get_id_bustype(device->evdev); in evdev_tag_external_mouse()
503 if (!libevdev_has_property(device->evdev, in evdev_tag_trackpoint()
552 if (!libevdev_has_event_type(device->evdev, EV_KEY)) in evdev_tag_keyboard()
556 if (!libevdev_has_event_code(device->evdev, in evdev_tag_keyboard()
638 struct evdev_device *evdev = evdev_device(device); in evdev_sendevents_set_mode() local
639 struct evdev_dispatch *dispatch = evdev->dispatch; in evdev_sendevents_set_mode()
646 evdev_device_resume(evdev); in evdev_sendevents_set_mode()
649 evdev_device_suspend(evdev); in evdev_sendevents_set_mode()
[all …]
Devdev-tablet-pad.c185 absinfo = libevdev_get_abs_info(device->evdev, code); in pad_handle_ring()
204 absinfo = libevdev_get_abs_info(device->evdev, code); in pad_handle_strip()
263 libevdev_get_event_value(device->evdev, EV_ABS, ABS_MISC) == 0) in pad_check_notify_axes()
603 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()
636 if (libevdev_get_id_vendor(device->evdev) != VENDOR_ID_WACOM) in pad_init_keys()
640 if (libevdev_has_event_code(device->evdev, EV_KEY, *code)) in pad_init_keys()
695 struct evdev_device *evdev = evdev_device(device); in pad_sendevents_set_mode() local
[all …]
Devdev-totem.c280 slot->axes.point.x = libevdev_get_slot_value(device->evdev, in totem_slot_fetch_axes()
283 slot->axes.point.y = libevdev_get_slot_value(device->evdev, in totem_slot_fetch_axes()
290 int angle = libevdev_get_slot_value(device->evdev, in totem_slot_fetch_axes()
304 major = libevdev_get_slot_value(device->evdev, in totem_slot_fetch_axes()
307 minor = libevdev_get_slot_value(device->evdev, in totem_slot_fetch_axes()
310 rmajor = libevdev_get_abs_resolution(device->evdev, ABS_MT_TOUCH_MAJOR); in totem_slot_fetch_axes()
311 rminor = libevdev_get_abs_resolution(device->evdev, ABS_MT_TOUCH_MINOR); in totem_slot_fetch_axes()
358 slot->axes.point.x = libevdev_get_slot_value(device->evdev, in slot_axes_initialize()
361 slot->axes.point.y = libevdev_get_slot_value(device->evdev, in slot_axes_initialize()
671 tracking_id = libevdev_get_slot_value(device->evdev, in totem_interface_initial_proximity()
[all …]
Devdev-tablet.c143 struct libevdev *evdev = tablet->device->evdev; in tablet_device_has_axis() local
148 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()
188 fuzz = libevdev_get_abs_fuzz(device->evdev, e->code); in tablet_filter_axis_fuzz()
470 absinfo = libevdev_get_abs_info(device->evdev, ABS_X); in tablet_update_xy()
479 absinfo = libevdev_get_abs_info(device->evdev, ABS_Y); in tablet_update_xy()
[all …]
Devdev-mt-touchpad.c2115 struct libevdev *evdev = device->evdev; in tp_sync_touch() local
2118 if (!libevdev_fetch_slot_value(evdev, in tp_sync_touch()
2122 t->point.x = libevdev_get_event_value(evdev, EV_ABS, ABS_X); in tp_sync_touch()
2123 if (!libevdev_fetch_slot_value(evdev, in tp_sync_touch()
2127 t->point.y = libevdev_get_event_value(evdev, EV_ABS, ABS_Y); in tp_sync_touch()
2129 if (!libevdev_fetch_slot_value(evdev, in tp_sync_touch()
2133 t->pressure = libevdev_get_event_value(evdev, in tp_sync_touch()
2137 libevdev_fetch_slot_value(evdev, in tp_sync_touch()
2141 libevdev_fetch_slot_value(evdev, in tp_sync_touch()
2146 if (libevdev_fetch_slot_value(evdev, in tp_sync_touch()
[all …]
Devdev-mt-touchpad-buttons.c719 struct evdev_device *evdev = evdev_device(device); in tp_button_config_click_get_methods() local
720 struct tp_dispatch *tp = (struct tp_dispatch*)evdev->dispatch; in tp_button_config_click_get_methods()
729 if (evdev->model_flags & EVDEV_MODEL_APPLE_TOUCHPAD_ONEBUTTON) in tp_button_config_click_get_methods()
764 struct evdev_device *evdev = evdev_device(device); in tp_button_config_click_set_method() local
765 struct tp_dispatch *tp = (struct tp_dispatch*)evdev->dispatch; in tp_button_config_click_set_method()
776 struct evdev_device *evdev = evdev_device(device); in tp_button_config_click_get_method() local
777 struct tp_dispatch *tp = (struct tp_dispatch*)evdev->dispatch; in tp_button_config_click_get_method()
807 struct evdev_device *evdev = evdev_device(device); in tp_button_config_click_get_default_method() local
808 struct tp_dispatch *tp = (struct tp_dispatch*)evdev->dispatch; in tp_button_config_click_get_default_method()
842 struct evdev_device *evdev = evdev_device(device); in tp_clickpad_middlebutton_set() local
[all …]
Devdev-fallback.c674 v = libevdev_get_slot_value(device->evdev, in fallback_process_touch()
763 int fd = libevdev_get_fd(dispatch->device->evdev); in fallback_lid_keyboard_event()
943 if (libevdev_has_event_code(device->evdev, EV_KEY, button) && in fallback_any_button_down()
1267 struct libevdev *evdev = device->evdev; in fallback_interface_sync_initial_state() local
1269 dispatch->lid.is_closed = libevdev_get_event_value(evdev, in fallback_interface_sync_initial_state()
1644 struct libevdev *evdev = device->evdev; in fallback_dispatch_init_slots() local
1651 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) || in fallback_dispatch_init_slots()
1652 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y)) in fallback_dispatch_init_slots()
1668 num_slots = libevdev_get_num_slots(device->evdev); in fallback_dispatch_init_slots()
1669 active_slot = libevdev_get_current_slot(evdev); in fallback_dispatch_init_slots()
[all …]
/third_party/libinput/patch/
DBUILD.gn36 "$gen_dst_dir/src/evdev.c",
37 "$gen_dst_dir/src/evdev-debounce.c",
38 "$gen_dst_dir/src/evdev-fallback.c",
39 "$gen_dst_dir/src/evdev-totem.c",
40 "$gen_dst_dir/src/evdev-joystick.c",
41 "$gen_dst_dir/src/evdev-middle-button.c",
42 "$gen_dst_dir/src/evdev-mt-touchpad.c",
43 "$gen_dst_dir/src/evdev-mt-touchpad-tap.c",
44 "$gen_dst_dir/src/evdev-mt-touchpad-thumb.c",
45 "$gen_dst_dir/src/evdev-mt-touchpad-buttons.c",
[all …]
/third_party/libinput/
DBUILD.gn29 "src/evdev-debounce.c",
30 "src/evdev-fallback.c",
31 "src/evdev-middle-button.c",
32 "src/evdev-mt-touchpad-buttons.c",
33 "src/evdev-mt-touchpad-edge-scroll.c",
34 "src/evdev-mt-touchpad-gestures.c",
35 "src/evdev-mt-touchpad-tap.c",
36 "src/evdev-mt-touchpad-thumb.c",
37 "src/evdev-mt-touchpad.c",
38 "src/evdev-tablet-pad-leds.c",
[all …]
/third_party/libinput/doc/user/
Darchitecture.rst12 for almost all API calls. General device handling is in ``evdev.c`` with the
13 device-type-specific implementations in ``evdev-<type>.c``. It is not
93 libinput only supports evdev devices, all the device initialization is done
94 in ``evdev.c``. Much of the libinput public API is also a thin wrapper around
95 the matching implementation in the evdev device.
119 evdev [label="evdev_device_create()"]
126 context->evdev;
138 ``evdev.c`` as well. Common functionality shared across multiple device types
165 evdev [label="evdev_device_create()"]
167 fallback [label="evdev-fallback.c"]
[all …]
/third_party/libinput/tools/
Dlibinput-replay64 evdev = fetch(device, 'evdev')
67 d.name = fetch(evdev, 'name')
69 ids = fetch(evdev, 'id')
74 codes = fetch(evdev, 'codes')
79 values = fetch(evdev, 'absinfo')[code]
93 properties = fetch(evdev, 'properties')
127 evdev = fetch(event, 'evdev')
131 (sec, usec, evtype, evcode, value) = evdev[0]
138 …= [libevdev.InputEvent(libevdev.evbit(e[2], e[3]), value=e[4], sec=e[0], usec=e[1]) for e in evdev]
150 evdev = fetch(events[0], 'evdev')
[all …]
Dlibinput-replay.py113 evdev = fetch(device, "evdev")
116 d.name = fetch(evdev, "name")
118 ids = fetch(evdev, "id")
123 codes = fetch(evdev, "codes")
128 values = fetch(evdev, "absinfo")[code]
144 properties = fetch(evdev, "properties")
211 evdev = fetch(event, "evdev")
215 evs = collect_events(evdev)
234 evdev = fetch(e, "evdev")
235 (sec, usec, *_) = evdev[0]
[all …]
Dlibinput-debug-tablet.c51 struct libevdev *evdev; member
140 normalize(struct libevdev *evdev, int code, int value) in normalize() argument
144 if (!evdev) in normalize()
147 abs = libevdev_get_abs_info(evdev, code); in normalize()
228 print_bar("ABS_X:", ctx->abs.x, normalize(ctx->evdev, ABS_X, ctx->abs.x)); in print_state()
229 print_bar("ABS_Y:", ctx->abs.y, normalize(ctx->evdev, ABS_Y, ctx->abs.y)); in print_state()
230 print_bar("ABS_Z:", ctx->abs.z, normalize(ctx->evdev, ABS_Z, ctx->abs.z)); in print_state()
231 print_bar("ABS_TILT_X:", ctx->abs.tilt_x, normalize(ctx->evdev, ABS_TILT_X, ctx->abs.tilt_x)); in print_state()
232 print_bar("ABS_TILT_Y:", ctx->abs.tilt_y, normalize(ctx->evdev, ABS_TILT_Y, ctx->abs.tilt_y)); in print_state()
233 …print_bar("ABS_DISTANCE:", ctx->abs.distance, normalize(ctx->evdev, ABS_DISTANCE, ctx->abs.distanc… in print_state()
[all …]
Dlibinput-measure-touchpad-size.py53 def __init__(self, evdev): argument
54 x = evdev.absinfo[libevdev.EV_ABS.ABS_X]
55 y = evdev.absinfo[libevdev.EV_ABS.ABS_Y]
253 evdev = libevdev.Device(fd)
254 touchpad = Touchpad(evdev)
277 for event in evdev.events():
312 xorig = evdev.absinfo[libevdev.EV_ABS.ABS_X]
313 yorig = evdev.absinfo[libevdev.EV_ABS.ABS_Y]
331 use_dmi = evdev.id["bustype"] not in [0x03, 0x05] # USB, Bluetooth
345 print("evdev:name:{}:{}*".format(evdev.name, dmi_modalias_match(modalias)))
[all …]
Dlibinput-debug-gui.c90 struct libevdev *evdev; member
205 } evdev; member
409 if (w->evdev.rel_x) { in draw_evdev_rel()
410 int dir = w->evdev.rel_x > 0 ? 1 : -1; in draw_evdev_rel()
411 for (int i = 0; i < abs(w->evdev.rel_x); i++) { in draw_evdev_rel()
422 if (w->evdev.rel_y) { in draw_evdev_rel()
423 int dir = w->evdev.rel_y > 0 ? 1 : -1; in draw_evdev_rel()
424 for (int i = 0; i < abs(w->evdev.rel_y); i++) { in draw_evdev_rel()
457 if (w->evdev.device == 0) in draw_evdev_abs()
462 if (w->evdev.device != w->evdev.last_device) { in draw_evdev_abs()
[all …]
Dlibinput-analyze-touch-down-state.py131 for evdev in event["evdev"]:
132 yield evdev
134 for evdev in events():
136 code=libevdev.evbit(evdev[2], evdev[3]),
137 value=evdev[4],
138 sec=evdev[0],
139 usec=evdev[1],
Dlibinput-analyze-recording.py90 for evdev in event.get("evdev", []):
92 code=libevdev.evbit(evdev[2], evdev[3]),
93 value=evdev[4],
94 sec=evdev[0],
95 usec=evdev[1],
Dlibinput-record-verify-yaml.py119 evdev = d["evdev"]
121 self.assertIn(s, evdev)
126 evdev = d["evdev"]
127 name = evdev["name"]
134 evdev = d["evdev"]
135 id = evdev["id"]
144 evdev = d["evdev"]
145 properties = evdev["properties"]
204 evdev = e["evdev"]
208 for ev in evdev:
[all …]
/third_party/libinput/udev/
Dlibinput-fuzz-to-zero.c39 struct libevdev *evdev = NULL; in reset_absfuzz_to_zero() local
56 rc = libevdev_new_from_fd(fd, &evdev); in reset_absfuzz_to_zero()
60 if (!libevdev_has_event_type(evdev, EV_ABS)) in reset_absfuzz_to_zero()
67 fuzz = libevdev_get_abs_fuzz(evdev, *code); in reset_absfuzz_to_zero()
71 abs = *libevdev_get_abs_info(evdev, *code); in reset_absfuzz_to_zero()
73 libevdev_kernel_set_abs_info(evdev, *code, &abs); in reset_absfuzz_to_zero()
78 libevdev_free(evdev); in reset_absfuzz_to_zero()
Dlibinput-fuzz-extract.c46 struct libevdev *evdev = NULL; in handle_absfuzz() local
63 rc = libevdev_new_from_fd(fd, &evdev); in handle_absfuzz()
67 if (!libevdev_has_event_type(evdev, EV_ABS)) in handle_absfuzz()
73 fuzz = libevdev_get_abs_fuzz(evdev, *code); in handle_absfuzz()
80 libevdev_free(evdev); in handle_absfuzz()
/third_party/libinput/test/
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()
724 struct libevdev *evdev; in START_TEST() local
745 ck_assert_int_eq(libevdev_new_from_fd(fd, &evdev), 0); in START_TEST()
746 ck_assert_int_eq(libevdev_get_event_value(evdev, EV_SW, SW_LID), 1); in START_TEST()
755 rc = libevdev_next_event(evdev, LIBEVDEV_READ_FLAG_NORMAL, &event); in START_TEST()
760 rc = libevdev_next_event(evdev, LIBEVDEV_READ_FLAG_NORMAL, &event); in START_TEST()
765 rc = libevdev_next_event(evdev, LIBEVDEV_READ_FLAG_NORMAL, &event); in START_TEST()
770 libevdev_free(evdev); in START_TEST()
779 struct libevdev *evdev = sw->evdev; in START_TEST() local
[all …]
Dtest-pad.c74 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST()
139 libevdev_get_id_vendor(dev->evdev), in START_TEST()
140 libevdev_get_id_product(dev->evdev), 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()
299 libevdev_get_id_vendor(dev->evdev), in START_TEST()
[all …]
/third_party/libinput/patch/diff_libinput_mmi/libinput/
Dlibinput_0000.diff25 + "//third_party/FreeBSD/sys/dev/evdev",
40 - "src/evdev-debounce.c",
41 - "src/evdev-fallback.c",
42 - "src/evdev-middle-button.c",
43 - "src/evdev-mt-touchpad-buttons.c",
44 - "src/evdev-mt-touchpad-edge-scroll.c",
45 - "src/evdev-mt-touchpad-gestures.c",
46 - "src/evdev-mt-touchpad-tap.c",
47 - "src/evdev-mt-touchpad-thumb.c",
48 - "src/evdev-mt-touchpad.c",
[all …]
/third_party/libevdev/
DREADME_zh.md1 # libevdev - wrapper library for evdev input devices
3 libevdev是evdev设备的包装库。它将处理evdev设备时的常见任务移动到库中,并向调用方提供库接口,从而避免错误的ioctl等。
5 最终目标是libevdev包装了evdev设备可用的所有ioctl,因此不需要直接访问。
DREADME.md1 libevdev - wrapper library for evdev input devices
4 libevdev is a wrapper library for evdev devices. it moves the common
5 tasks when dealing with evdev devices into a library and provides a library

123