列表 12. 检查重复率设置

int rep[2];

if(ioctl(fd, EVIOCGREP, rep)) {
    perror("evdev ioctl");
}

printf("[0]= %d, [1] = %d\n", rep[0], rep[1]);
© . All rights reserved.