方法是把每一个/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="…