linux下实现触屏测试程序 fd=open("/dev/event1",O_RDONLY)) read(fd, &ev;, sizeof(struct input_event)) switch (ev.code) { case ABS_X: ts[0]=(ev.value-2800)/14;break; //value x case ABS_Y: ts[1]=(ev.value-5430)/11;;break; //value y case ABS_PRESSURE: ts[2] = ev.value;break; //pressure }