Home
last modified time | relevance | path

Searched refs:libinput (Results 1 – 25 of 129) sorted by relevance

123456

/third_party/libinput/src/
Dtimer.c37 struct libinput *libinput, in libinput_timer_init() argument
42 timer->libinput = libinput; in libinput_timer_init()
53 log_bug_libinput(timer->libinput, in libinput_timer_destroy()
62 libinput_timer_arm_timer_fd(struct libinput *libinput) in libinput_timer_arm_timer_fd() argument
69 list_for_each(timer, &libinput->timer.list, link) { in libinput_timer_arm_timer_fd()
79 r = timerfd_settime(libinput->timer.fd, TFD_TIMER_ABSTIME, &its, NULL); in libinput_timer_arm_timer_fd()
81 log_error(libinput, "timer: timerfd_settime error: %s\n", strerror(errno)); in libinput_timer_arm_timer_fd()
83 libinput->timer.next_expiry = earliest_expire; in libinput_timer_arm_timer_fd()
92 uint64_t now = libinput_now(timer->libinput); in libinput_timer_set_flags()
95 log_bug_client(timer->libinput, in libinput_timer_set_flags()
[all …]
Dpath-seat.c33 struct libinput base;
68 path_input_disable(struct libinput *libinput) in path_input_disable() argument
70 struct path_input *input = (struct path_input*)libinput; in path_input_disable()
217 path_input_enable(struct libinput *libinput) in path_input_enable() argument
219 struct path_input *input = (struct path_input*)libinput; in path_input_enable()
224 path_input_disable(libinput); in path_input_enable()
241 path_input_destroy(struct libinput *input) in path_input_destroy()
254 path_create_device(struct libinput *libinput, in path_create_device() argument
258 struct path_input *input = (struct path_input*)libinput; in path_create_device()
279 struct libinput *libinput = device->seat->libinput; in path_device_change_seat() local
[all …]
Dlibinput.c123 check_event_type(struct libinput *libinput, in check_event_type() argument
147 log_bug_client(libinput, in check_event_type()
255 libinput_default_log_func(struct libinput *libinput, in libinput_default_log_func() argument
273 log_msg_va(struct libinput *libinput, in log_msg_va() argument
278 if (is_logged(libinput, priority)) in log_msg_va()
279 libinput->log_handler(libinput, priority, format, args); in log_msg_va()
283 log_msg(struct libinput *libinput, in log_msg() argument
290 log_msg_va(libinput, priority, format, args); in log_msg()
295 log_msg_ratelimit(struct libinput *libinput, in log_msg_ratelimit() argument
308 log_msg_va(libinput, priority, format, args); in log_msg_ratelimit()
[all …]
Dtimer.h31 struct libinput;
34 struct libinput *libinput; member
43 libinput_timer_init(struct libinput_timer *timer, struct libinput *libinput,
69 libinput_timer_subsys_init(struct libinput *libinput);
72 libinput_timer_subsys_destroy(struct libinput *libinput);
75 libinput_timer_flush(struct libinput *libinput, uint64_t now);
Dudev-seat.c260 udev_input_disable(struct libinput *libinput) in udev_input_disable() argument
262 struct udev_input *input = (struct udev_input*)libinput; in udev_input_disable()
276 udev_input_enable(struct libinput *libinput) in udev_input_enable() argument
278 struct udev_input *input = (struct udev_input*)libinput; in udev_input_enable()
287 log_info(libinput, in udev_input_enable()
294 log_info(libinput, "udev: failed to set up filter\n"); in udev_input_enable()
299 log_info(libinput, "udev: failed to bind the udev monitor\n"); in udev_input_enable()
317 udev_input_disable(libinput); in udev_input_enable()
325 udev_input_destroy(struct libinput *input) in udev_input_destroy()
376 struct libinput *libinput = device->seat->libinput; in udev_device_change_seat() local
[all …]
Dlibinput-private.h121 int (*resume)(struct libinput *libinput);
122 void (*suspend)(struct libinput *libinput);
123 void (*destroy)(struct libinput *libinput);
128 struct libinput { struct
176 struct libinput *libinput; argument
451 is_logged(const struct libinput *libinput, in is_logged() argument
454 return libinput->log_handler && in is_logged()
455 libinput->log_priority <= priority; in is_logged()
460 log_msg_ratelimit(struct libinput *libinput,
467 log_msg(struct libinput *libinput,
[all …]
Dlibinput.h48 struct libinput;
1026 struct libinput *
3537 struct libinput *
3564 libinput_udev_assign_seat(struct libinput *libinput,
3586 struct libinput *
3611 libinput_path_add_device(struct libinput *libinput,
3644 libinput_get_fd(struct libinput *libinput);
3664 libinput_dispatch(struct libinput *libinput);
3678 libinput_get_event(struct libinput *libinput);
3692 libinput_next_event_type(struct libinput *libinput);
[all …]
/third_party/libinput/
DREADME.md1 libinput chapter
4 libinput is a library that provides a full input stack for display servers
8 libinput provides device detection, event handling and abstraction to
9 minimize the amount of custom input code the user of libinput needs to
17 Documentation explaining features available in libinput is available
18 [here](https://wayland.freedesktop.org/libinput/doc/latest/features.html).
20 This includes the [FAQ](https://wayland.freedesktop.org/libinput/doc/latest/faqs.html)
22 [reporting bugs](https://wayland.freedesktop.org/libinput/doc/latest/reporting-bugs.html).
28 The source code of libinput can be found at:
29 https://gitlab.freedesktop.org/libinput/libinput
[all …]
DBUILD.gn3 ## Build libinput-third.so {{{
4 config("libinput-third_config") {
21 config("libinput-third_public_config") {
27 ohos_shared_library("libinput-third") {
52 "src/libinput.c",
62 # "src/libinput-util.c",
65 configs = [ ":libinput-third_config" ]
67 public_configs = [ ":libinput-third_public_config" ]
77 part_name = "libinput"
80 ## Build libinput-third.so }}}
[all …]
Dmeson.build1 project('libinput', 'c', project
9 dir_data = get_option('prefix') / get_option('datadir') / 'libinput'
11 dir_overrides = get_option('prefix') / get_option('sysconfdir') / 'libinput'
12 dir_libexec = get_option('prefix') / get_option('libexecdir') / 'libinput'
72 doc_url_base = 'https://wayland.freedesktop.org/libinput/doc'
168 executable('libinput-device-group',
169 'udev/libinput-device-group.c',
174 executable('libinput-fuzz-extract',
175 'udev/libinput-fuzz-extract.c',
182 executable('libinput-fuzz-to-zero',
[all …]
/third_party/libinput/doc/user/
Dwhat-is-libinput.rst5 What is libinput?
8 This page describes what libinput is, but more importantly it also describes
9 what libinput is **not**.
14 What libinput is
17 libinput is an input stack for processes that need to provide events from
19 touchscreens and graphics tablets. libinput handles device-specific quirks
22 libinput is designed to handle all input devices available on a system but
23 it is possible to limit which devices libinput has access to.
24 For example, the use of xf86-input-libinput depends on xorg.conf snippets
25 for specific devices. But libinput works best if it handles all input
[all …]
Dbuilding.rst4 libinput build instructions
12 Instructions on how to build libinput and its tools and how to build against
13 libinput.
16 system-provided libinput with one from the git repository, see
22 Distribution repositories for libinput from git
26 the latest libinput without building it manually.
28 .. note:: The list below is provided for convenience. The libinput community
33 The following repositories provide an up-to-date package for libinput:
35 - **Arch:** https://aur.archlinux.org/packages/libinput-git/
36 - **Fedora:** https://copr.fedorainfracloud.org/coprs/whot/libinput-git/
[all …]
Dtools.rst7 libinput provides a ``libinput`` tool to query state and events. This tool
9 explanation of the various commands available in the libinput tool is
10 available in the **libinput(1)** man page.
14 - ``libinput list-devices``: to list locally available devices,
15 see :ref:`here <libinput-list-devices>`
16 - ``libinput debug-events``: to monitor and debug events,
17 see :ref:`here <libinput-debug-events>`
18 - ``libinput debug-gui``: to visualize events,
19 see :ref:`here <libinput-debug-gui>`
20 - ``libinput record``: to record an event sequence for replaying,
[all …]
Dfaqs.rst7 Frequently asked questions about libinput.
17 Why doesn't libinput support ...?
21 libinput needs to support, please file a bug report. See :ref:`reporting_bugs`
41 :ref:`device-quirks` to specify the range available so libinput can adjust the
48 Why is libinput's pointer acceleration worse than synaptics/evdev
53 in libinput's acceleration code, it may be a disagreement about how pointer
91 libinput does not implement kinetic scrolling for touchpads. Instead it
99 Is libinput GPL-licensed?
102 No, libinput is MIT licensed. The Linux kernel header file linux/input.h in
103 libinput's tree is provided to ensure the same behavior regardless of which
[all …]
Ddevice-configuration-via-udev.rst7 libinput supports some static configuration through udev properties.
9 to libinput's device list, i.e. before the
39 If set to anything other than "0", the device is ignored by libinput.
51 If any of the above is set, libinput initializes the device as the given
53 one of these may be set at any time, libinput will select only one of these
54 to determine the device type. To ensure libinput selects the correct device
84 libinput requires the **ID_INPUT** property to be set on a device,
89 device type. The usual error handling applies within libinput and a device
90 type label does not guarantee that the device is initialized by libinput.
92 labelled as touchpad) the device will not be available through libinput.
[all …]
/third_party/libinput/test/
Dtest-keyboard.c36 struct libinput *libinput; in START_TEST() local
44 libinput = litest_create_context(); in START_TEST()
47 devices[i] = litest_add_device_with_overrides(libinput, in START_TEST()
53 litest_drain_events(libinput); in START_TEST()
58 libinput_dispatch(libinput); in START_TEST()
59 while ((ev = libinput_get_event(libinput))) { in START_TEST()
70 libinput_dispatch(libinput); in START_TEST()
78 libinput_dispatch(libinput); in START_TEST()
79 while ((ev = libinput_get_event(libinput))) { in START_TEST()
92 libinput_dispatch(libinput); in START_TEST()
[all …]
Dtest-touch.c39 struct libinput *li = dev->libinput; in START_TEST()
43 litest_drain_events(dev->libinput); in START_TEST()
70 struct libinput *li = dev->libinput; in START_TEST()
89 struct libinput *libinput; in START_TEST() local
107 libinput = dev->libinput; in START_TEST()
111 libinput_dispatch(libinput); in START_TEST()
113 while ((ev = libinput_get_event(libinput))) { in START_TEST()
137 touch_assert_seat_slot(struct libinput *li, in touch_assert_seat_slot()
163 struct libinput *li = dev1->libinput; in START_TEST()
207 struct libinput *libinput; in START_TEST() local
[all …]
Dtest-touchpad.c42 dwt_init_paired_keyboard(struct libinput *li, in dwt_init_paired_keyboard()
59 struct libinput *li = dev->libinput; in START_TEST()
90 struct libinput *li = dev->libinput; in START_TEST()
119 struct libinput *li = dev->libinput; in test_2fg_scroll()
142 struct libinput *li = dev->libinput; in START_TEST()
181 struct libinput *li = dev->libinput; in START_TEST()
253 struct libinput *li = dev->libinput; in is_single_axis_2fg_scroll()
304 struct libinput *li = dev->libinput; in START_TEST()
339 struct libinput *li = dev->libinput; in START_TEST()
407 struct libinput *li = dev->libinput; in START_TEST()
[all …]
Dtest-touchpad-buttons.c38 struct libinput *li = dev->libinput; in START_TEST()
145 struct libinput *li = dev->libinput; in START_TEST()
170 struct libinput *li = dev->libinput; in START_TEST()
193 struct libinput *li = dev->libinput; in START_TEST()
220 struct libinput *li = dev->libinput; in START_TEST()
254 struct libinput *li = dev->libinput; in START_TEST()
293 struct libinput *li = dev->libinput; in START_TEST()
324 struct libinput *li = dev->libinput; in START_TEST()
356 struct libinput *li = dev->libinput; in START_TEST()
392 struct libinput *li = dev->libinput; in START_TEST()
[all …]
Dtest-log.c36 static struct libinput *log_handler_context;
39 simple_log_handler(struct libinput *libinput, in simple_log_handler() argument
46 litest_assert_ptr_eq(libinput, log_handler_context); in simple_log_handler()
70 struct libinput *li; in START_TEST()
83 struct libinput *li; in START_TEST()
107 struct libinput *li; in START_TEST()
127 struct libinput *li; in START_TEST()
157 axisrange_warning_log_handler(struct libinput *libinput, in axisrange_warning_log_handler() argument
174 struct libinput *li = dev->libinput; in START_TEST()
Dtest-trackpoint.c38 struct libinput *li = dev->libinput; in START_TEST()
75 struct libinput *li = dev->libinput; in START_TEST()
117 struct libinput *li = dev->libinput; in START_TEST()
150 struct libinput *li = dev->libinput; in START_TEST()
174 struct libinput *li = touchpad->libinput; in START_TEST()
219 struct libinput *li = touchpad->libinput; in START_TEST()
262 struct libinput *li = touchpad->libinput; in START_TEST()
310 struct libinput *li = trackpoint->libinput; in START_TEST()
346 struct libinput *li = trackpoint->libinput; in START_TEST()
381 struct libinput *li = trackpoint->libinput; in START_TEST()
[all …]
Dtest-touchpad-tap.c38 struct libinput *li = dev->libinput; in START_TEST()
62 struct libinput *li = dev->libinput; in START_TEST()
202 struct libinput *li = dev->libinput; in START_TEST()
292 struct libinput *li = dev->libinput; in START_TEST()
401 struct libinput *li = dev->libinput; in START_TEST()
518 struct libinput *li = dev->libinput; in START_TEST()
620 struct libinput *li = dev->libinput; in START_TEST()
709 struct libinput *li = dev->libinput; in START_TEST()
824 struct libinput *li = dev->libinput; in START_TEST()
916 struct libinput *li = dev->libinput; in START_TEST()
[all …]
Dtest-pointer.c40 struct libinput *li = dev->libinput; in test_relative_event()
95 litest_drain_events(dev->libinput); in test_relative_event()
121 libinput_dispatch(dev->libinput); in START_TEST()
123 litest_drain_events(dev->libinput); in START_TEST()
140 struct libinput *li = dev->libinput; in START_TEST()
171 libinput_dispatch(dev->libinput); in START_TEST()
181 struct libinput *li = dev->libinput; in START_TEST()
201 litest_drain_events(dev->libinput); in START_TEST()
229 struct libinput *li = dev->libinput; in test_absolute_event()
257 litest_drain_events(dev->libinput); in START_TEST()
[all …]
/third_party/libinput/export_include/
Dlibinput.h48 struct libinput;
1026 struct libinput *
3537 struct libinput *
3564 libinput_udev_assign_seat(struct libinput *libinput,
3586 struct libinput *
3611 libinput_path_add_device(struct libinput *libinput,
3644 libinput_get_fd(struct libinput *libinput);
3664 libinput_dispatch(struct libinput *libinput);
3678 libinput_get_event(struct libinput *libinput);
3692 libinput_next_event_type(struct libinput *libinput);
[all …]
/third_party/libinput/doc/api/
Dmainpage.dox4 This is the libinput API reference.
8 [here](https://wayland.freedesktop.org/libinput/doc/latest).
12 @subsection concepts_initialization Initialization of a libinput context
14 libinput provides two different backends:
22 See section @ref base for information about initializing a libinput context.
26 libinput exposes a single @ref libinput_get_fd "file descriptor" to the
46 libinput does not use device types. All devices have @ref
62 libinput relies on the caller for device configuration. See
65 @subsection example An example libinput program
67 The simplest libinput program looks like this:
[all …]

123456