Lines Matching refs:libevdev
1 # 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。此示例打开一个设备,检查相对坐标和鼠标左键,如果找到,则监听设备并打印输入事件
34 struct libevdev *dev = NULL;
41 fprintf(stderr, "Failed to init libevdev (%s)\n", strerror(-rc));
69 ## libevdev使用文档
71 代码仓库 https://gitlab.freedesktop.org/libevdev/libevdev.git
73 API官方文档 http://www.freedesktop.org/software/libevdev/doc/latest/
75 API详细定义 https://www.freedesktop.org/software/libevdev/doc/latest/libevdev_8h.html
77 补丁包 https://gitlab.freedesktop.org/libevdev/libevdev/merge_requests/
79 Bug上报 https://gitlab.freedesktop.org/libevdev/libevdev/issues/