Unnamed
public text v1 · immutableint dev_event_init(void){
if (!(fp_event = open(EV_FILE, O_RDONLY))) {
perror("failed to open event device");
return -1;
}
if ((ioctl(fp_event, EVIOCGRAB)) == -1) {
perror("failed to grab the device");
return -1;
}
}