linux下获取按键响应事件
参考https://www.cnblogs.com/yangwindsor/articles/3454955.htmllinux/input.h 这个文件定义了event事件的结构体,API和标准按键的编码等;struct input_event {struct timeval time; //按键时间__u16 type; //事件类型__u16 code; //要模拟成什么按键__s32 value;//是按下还是释放};type,指事件类型,常见的事件类型有:EV_KEY, 按键事
原创
2021-09-08 20:02:41 ·
3024 阅读 ·
0 评论