方法是把每一个/dev/input/event打开.通过ioctl函数来读取设备name,每一个设备name是固定的,可以根据name区分event.我这是查找触摸事件为例:代码如下: static int getTouchEventNum() { ]; /* RATS: Use ok, but could be better */ ] = { , }; /* RATS: Use ok */ ; int i; ; i < ; i++) { sprintf(name, "/dev/input…
<div id="addNumber"> <p>How many people would you like to invite?</p> <input id="numPeople" type="number" min="0" value="" placeholder="0" /> </div> <div id="…
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Input event codes * * *** IMPORTANT *** * This file is not only included from C-code but also from devicetree source * files. As such this file MUST only contain comments and defines…