Home
last modified time | relevance | path

Searched refs:libevdev (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/libevdev/export_include/libevdev/
Dlibevdev.h755 struct libevdev;
782 struct libevdev* libevdev_new(void);
806 int libevdev_new_from_fd(int fd, struct libevdev **dev);
821 void libevdev_free(struct libevdev *dev);
921 typedef void (*libevdev_device_log_func_t)(const struct libevdev *dev,
950 void libevdev_set_device_log_function(struct libevdev *dev,
985 int libevdev_grab(struct libevdev *dev, enum libevdev_grab_mode grab);
1019 int libevdev_set_fd(struct libevdev* dev, int fd);
1059 int libevdev_change_fd(struct libevdev* dev, int fd);
1069 int libevdev_get_fd(const struct libevdev* dev);
[all …]
/third_party/libevdev/libevdev/
Dlibevdev.h755 struct libevdev;
782 struct libevdev* libevdev_new(void);
806 int libevdev_new_from_fd(int fd, struct libevdev **dev);
821 void libevdev_free(struct libevdev *dev);
921 typedef void (*libevdev_device_log_func_t)(const struct libevdev *dev,
950 void libevdev_set_device_log_function(struct libevdev *dev,
985 int libevdev_grab(struct libevdev *dev, enum libevdev_grab_mode grab);
1019 int libevdev_set_fd(struct libevdev* dev, int fd);
1059 int libevdev_change_fd(struct libevdev* dev, int fd);
1069 int libevdev_get_fd(const struct libevdev* dev);
[all …]
DMakefile.am1 lib_LTLIBRARIES=libevdev.la
7 libevdev.h \
8 libevdev-int.h \
9 libevdev-util.h \
10 libevdev-uinput.c \
11 libevdev-uinput.h \
12 libevdev-uinput-int.h \
13 libevdev.c \
14 libevdev-names.c \
27 EXTRA_libevdev_la_DEPENDENCIES = $(srcdir)/libevdev.sym
[all …]
Dlibevdev.c46 static int sync_mt_state(struct libevdev *dev,
49 update_key_state(struct libevdev *dev, const struct input_event *e);
52 slot_value(const struct libevdev *dev, int slot, int axis) in slot_value()
67 init_event_queue(struct libevdev *dev) in init_event_queue()
134 fix_invalid_absinfo(const struct libevdev *dev, in fix_invalid_absinfo()
163 _libevdev_log_msg(const struct libevdev *dev, in _libevdev_log_msg()
197 libevdev_reset(struct libevdev *dev) in libevdev_reset()
218 LIBEVDEV_EXPORT struct libevdev*
221 struct libevdev *dev; in libevdev_new()
233 libevdev_new_from_fd(int fd, struct libevdev **dev) in libevdev_new_from_fd()
[all …]
Dlibevdev-int.h55 struct libevdev { struct
108 _libevdev_log_msg(const struct libevdev *dev, argument
113 _libevdev_log_priority(const struct libevdev *dev);
116 init_event(struct libevdev *dev, struct input_event *ev, int type, int code, int value) in init_event()
130 queue_push(struct libevdev *dev) in queue_push()
139 queue_push_event(struct libevdev *dev, unsigned int type, in queue_push_event()
156 queue_pop(struct libevdev *dev, struct input_event *ev) in queue_pop()
167 queue_peek(struct libevdev *dev, size_t idx, struct input_event *ev) in queue_peek()
184 queue_shift_multiple(struct libevdev *dev, size_t n, struct input_event *ev) in queue_shift_multiple()
211 queue_shift(struct libevdev *dev, struct input_event *ev) in queue_shift()
[all …]
DMakefile.in93 subdir = libevdev
138 am_libevdev_la_OBJECTS = libevdev-uinput.lo libevdev.lo \
139 libevdev-names.lo
163 am__depfiles_remade = ./$(DEPDIR)/libevdev-names.Plo \
164 ./$(DEPDIR)/libevdev-uinput.Plo ./$(DEPDIR)/libevdev.Plo
352 lib_LTLIBRARIES = libevdev.la
356 libevdev.h \
357 libevdev-int.h \
358 libevdev-util.h \
359 libevdev-uinput.c \
[all …]
/third_party/libevdev/
DREADME_zh.md1 # libevdev - wrapper library for evdev input devices
3 libevdev是evdev设备的包装库。它将处理evdev设备时的常见任务移动到库中,并向调用方提供库接口,从而避免错误的ioctl等。
5 最终目标是libevdev包装了evdev设备可用的所有ioctl,因此不需要直接访问。
13 export_include/libevdev/ API定义
15 libevdev/ 封装层实现
19 ## OpenHarmony如何集成libevdev
23 #include <libevdev/libevdev.h>
27 public_deps += ["//third_party/libevdev:libevdev"]
29 ### 3.调用libevdev函数过程举例
31 // 下面是一个简单的示例,展示了如何使用libevdev。此示例打开一个设备,检查相对坐标和鼠标左键,如果找到,则监听设备并打印输入事件
[all …]
Dmeson.build1 project('libevdev', 'c', project
9 dir_src = join_paths(meson.source_root(), 'libevdev')
47 make_event_names = find_program('libevdev/make-event-names.py')
48 event_names_h = configure_file(input: 'libevdev/libevdev.h',
54 # libevdev.so
55 install_headers('libevdev/libevdev.h',
56 'libevdev/libevdev-uinput.h',
57 subdir: 'libevdev-1.0/libevdev')
60 'libevdev/libevdev.h',
61 'libevdev/libevdev-int.h',
[all …]
DBUILD.gn3 ## Build libevdev.so {{{
8 "libevdev",
24 ohos_shared_library("libevdev") {
26 "libevdev/libevdev-names.c",
27 "libevdev/libevdev-uinput.c",
28 "libevdev/libevdev.c",
39 part_name = "libevdev"
41 ## Build libevdev.so }}}
DREADME.md1 libevdev - wrapper library for evdev input devices
4 libevdev is a wrapper library for evdev devices. it moves the common
8 https://gitlab.freedesktop.org/libevdev/libevdev.git
11 http://www.freedesktop.org/software/libevdev/doc/latest/
14 https://gitlab.freedesktop.org/libevdev/libevdev/issues/
17 https://gitlab.freedesktop.org/libevdev/libevdev/merge_requests/
Dconfigure.ac9 AC_INIT([libevdev], package
11 [https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev],
12 [libevdev],
13 [http://freedesktop.org/wiki/Software/libevdev/])
15 AC_CONFIG_SRCDIR([libevdev/libevdev.c])
159 libevdev/Makefile
161 doc/libevdev.doxygen
162 doc/libevdev.man
165 libevdev.pc])
Dthird_party_libevdev.diff1 diff -Naur third-party-libevdev-bak/COPYING third-party-new/COPYING
2 --- third-party-libevdev-bak/COPYING 2023-03-28 10:49:53.360511300 +0800
47 diff -Naur third-party-libevdev-bak/Makefile.in third-party-new/Makefile.in
48 --- third-party-libevdev-bak/Makefile.in 1970-01-01 08:00:00.000000000 +0800
155 +CONFIG_CLEAN_FILES = libevdev.pc
241 + $(srcdir)/libevdev.pc.in $(top_srcdir)/build-aux/compile \
438 +SUBDIRS = doc libevdev tools test
440 +pkgconfig_DATA = libevdev.pc
441 +EXTRA_DIST = libevdev.pc.in meson.build meson_options.txt
494 +libevdev.pc: $(top_builddir)/config.status $(srcdir)/libevdev.pc.in
[all …]
/third_party/libevdev/test/
DMakefile.am9 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/libevdev
17 test_link_LDADD = $(top_builddir)/libevdev/libevdev.la
21 test_static_link_LDADD = $(top_builddir)/libevdev/libevdev.la
28 test-libevdev \
32 test-libevdev-internals \
57 test_event_codes_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
64 test_libevdev_internals_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
71 test_uinput_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
76 test-libevdev-init.c \
77 test-libevdev-has-event.c \
[all …]
DMakefile.in119 @ENABLE_RUNTIME_TESTS_TRUE@am__EXEEXT_3 = test-libevdev$(EXEEXT) \
123 @ENABLE_RUNTIME_TESTS_TRUE@ test-libevdev-internals$(EXEEXT)
154 @ENABLE_RUNTIME_TESTS_TRUE@ $(top_builddir)/libevdev/libevdev.la
171 @ENABLE_RUNTIME_TESTS_TRUE@ $(top_builddir)/libevdev/libevdev.la
175 am__test_libevdev_SOURCES_DIST = test-main.c test-libevdev-init.c \
176 test-libevdev-has-event.c test-libevdev-events.c \
181 @ENABLE_RUNTIME_TESTS_TRUE@ test-libevdev-init.$(OBJEXT) \
182 @ENABLE_RUNTIME_TESTS_TRUE@ test-libevdev-has-event.$(OBJEXT) \
183 @ENABLE_RUNTIME_TESTS_TRUE@ test-libevdev-events.$(OBJEXT) \
188 @ENABLE_RUNTIME_TESTS_TRUE@ $(top_builddir)/libevdev/libevdev.la
[all …]
/third_party/libinput/tools/
Dlibinput-analyze-per-slot-delta.py36 import libevdev
193 nslots = absinfo[libevdev.EV_ABS.ABS_MT_SLOT.value][1] + 1
204 xres = 1.0 * absinfo[libevdev.EV_ABS.ABS_X.value][4]
205 yres = 1.0 * absinfo[libevdev.EV_ABS.ABS_Y.value][4]
217 libevdev.EV_KEY.BTN_TOUCH: 0,
218 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP: 0,
219 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP: 0,
220 libevdev.EV_KEY.BTN_TOOL_QUADTAP: 0,
221 libevdev.EV_KEY.BTN_TOOL_QUINTTAP: 0,
224 libevdev.EV_KEY.BTN_LEFT: 0,
[all …]
Dlibinput-analyze-recording.py35 import libevdev
44 if code in (libevdev.EV_ABS.ABS_MISC, libevdev.EV_MSC.MSC_SERIAL):
48 if code.type == libevdev.EV_REL:
56 if code.type in (libevdev.EV_KEY, libevdev.EV_SW, libevdev.EV_SYN):
60 if code.type == libevdev.EV_ABS:
61 if libevdev.EV_ABS.ABS_MT_SLOT <= code <= libevdev.EV_ABS.ABS_MAX:
91 yield libevdev.InputEvent(
92 code=libevdev.evbit(evdev[2], evdev[3]),
135 if e.code.type == libevdev.EV_KEY:
140 elif e.code == libevdev.EV_SYN.SYN_REPORT:
[all …]
Dlibinput-analyze-touch-down-state.py36 import libevdev
99 nslots = absinfo[libevdev.EV_ABS.ABS_MT_SLOT.value][1] + 1
104 libevdev.EV_KEY.BTN_TOOL_FINGER: 0,
105 libevdev.EV_KEY.BTN_TOOL_PEN: 0,
106 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP: 1,
107 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP: 2,
108 libevdev.EV_KEY.BTN_TOOL_QUADTAP: 3,
109 libevdev.EV_KEY.BTN_TOOL_QUINTTAP: 4,
113 if bit.value in device["evdev"]["codes"][libevdev.EV_KEY.value]:
135 e = libevdev.InputEvent(
[all …]
Dlibinput-measure-touch-size.py32 import libevdev
182 class Device(libevdev.Device):
194 if not self.has(libevdev.EV_ABS.ABS_MT_TOUCH_MAJOR):
197 self.has_minor = self.has(libevdev.EV_ABS.ABS_MT_TOUCH_MINOR)
198 self.has_orientation = self.has(libevdev.EV_ABS.ABS_MT_ORIENTATION)
256 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP,
257 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP,
258 libevdev.EV_KEY.BTN_TOOL_QUADTAP,
259 libevdev.EV_KEY.BTN_TOOL_QUINTTAP,
268 if event.matches(libevdev.EV_ABS.ABS_MT_TRACKING_ID):
[all …]
Dlibinput-replay.py35 import libevdev
115 d = libevdev.Device()
127 if evtype == libevdev.EV_ABS.value:
129 absinfo = libevdev.InputAbsInfo(
137 elif evtype == libevdev.EV_REP.value:
138 if code == libevdev.EV_REP.REP_DELAY.value:
140 elif code == libevdev.EV_REP.REP_PERIOD.value:
142 d.enable(libevdev.evbit(evtype, code), data=data)
146 d.enable(libevdev.propbit(prop))
175 if evtype == libevdev.EV_KEY.value and value == 2: # key repeat
[all …]
Dlibinput-replay34 import libevdev
66 d = libevdev.Device()
78 if evtype == libevdev.EV_ABS.value:
80 absinfo = libevdev.InputAbsInfo(minimum=values[0],
86 elif evtype == libevdev.EV_REP.value:
87 if code == libevdev.EV_REP.REP_DELAY.value:
89 elif code == libevdev.EV_REP.REP_PERIOD.value:
91 d.enable(libevdev.evbit(evtype, code), data=data)
95 d.enable(libevdev.propbit(prop))
138 …evs = [libevdev.InputEvent(libevdev.evbit(e[2], e[3]), value=e[4], sec=e[0], usec=e[1]) for e in e…
Dlibinput-measure-touchpad-pressure.py32 import libevdev
212 class Device(libevdev.Device):
225 absinfo = self.absinfo[libevdev.EV_ABS.ABS_MT_PRESSURE]
227 absinfo = self.absinfo[libevdev.EV_ABS.ABS_PRESSURE]
290 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP,
291 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP,
292 libevdev.EV_KEY.BTN_TOOL_QUADTAP,
293 libevdev.EV_KEY.BTN_TOOL_QUINTTAP,
303 if event.matches(libevdev.EV_ABS.ABS_MT_TRACKING_ID):
314 elif event.matches(libevdev.EV_ABS.ABS_MT_PRESSURE) or (
[all …]
/third_party/libevdev/tools/
DMakefile.am1 noinst_PROGRAMS = libevdev-events libevdev-list-codes
5 libevdev-tweak-device
7 AM_CPPFLAGS = $(GCC_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/libevdev
8 libevdev_ldadd = $(top_builddir)/libevdev/libevdev.la
10 libevdev_events_SOURCES = libevdev-events.c
13 libevdev_list_codes_SOURCES = libevdev-list-codes.c
22 libevdev_tweak_device_SOURCES = libevdev-tweak-device.c
26 libevdev-tweak-device.1 \
DMakefile.in91 noinst_PROGRAMS = libevdev-events$(EXEEXT) \
92 libevdev-list-codes$(EXEEXT)
94 libevdev-tweak-device$(EXEEXT)
110 am_libevdev_events_OBJECTS = libevdev-events.$(OBJEXT)
117 am_libevdev_list_codes_OBJECTS = libevdev-list-codes.$(OBJEXT)
120 am_libevdev_tweak_device_OBJECTS = libevdev-tweak-device.$(OBJEXT)
144 am__depfiles_remade = ./$(DEPDIR)/libevdev-events.Po \
145 ./$(DEPDIR)/libevdev-list-codes.Po \
146 ./$(DEPDIR)/libevdev-tweak-device.Po \
370 AM_CPPFLAGS = $(GCC_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/libevdev
[all …]
/third_party/libevdev/doc/
DMakefile.am1 man3_MANS = libevdev.man
8 $(top_srcdir)/libevdev/libevdev.h \
9 $(top_srcdir)/libevdev/libevdev-uinput.h
11 html/index.html: libevdev.doxygen style/libevdevdoxygen.css $(header_files)
/third_party/libinput/
DBUILD.gn73 "//third_party/libevdev:libevdev",
99 "//third_party/libevdev:libevdev",
123 "//third_party/libevdev:libevdev",
147 "//third_party/libevdev:libevdev",

1234