1.将input子系统中的handler层和core层对应的代码编译进内核镜像中:zImage
make menuconfig
Device Drivers --->
| //核心层:drivers/input/input.c
Input device support --->
| //数据处理层:drivers/input/evdev.c
<*> Event interface
2.在创建一个input_dev对象后
static struct input_dev *button_dev;
button_dev = input_allocate_device();
//对该对象下的name成员添加描述信息
buttons_dev->name = "button_dev";
input: Unspecified device as /devices/virtual/input/inputx问题解决
最新推荐文章于 2023-08-11 09:13:08 发布