input子系统基于 input 子系统注册成功的输入设备,都会在/dev/input 目录下生成对应的设备节点(设备文件), 设备节点名称通常为 eventX(X 表示一个数字编号 0、 1、 2、 3 等),譬如/dev/input/event0、 /dev/input/event1、/dev/input/event2 等
应用程序如何解析数据应用程序打开设备对应的设备文件对其进行读操作,获取的数据是一个结构体struct input_event 结构体类型数据 ,定义在<linux/input.h>
123456struct input_event { struct timeval time; //内核会记录每个上报的事件其发生的时间,并通过变量 time 返回给应用程序 __u16 type; __u16 code; __s32 value;};
type: type 用于描述发生了 ...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment


