Lines Matching refs:code
148 int code;
149 for (code = 0; code < ABS_CNT; code++) {
153 if (code == ABS_MT_SLOT)
156 abs = libevdev_get_abs_info(d->d, code);
160 rc = ioctl(d->dev_fd, EVIOCSABS(code), abs);
162 printf("error %s for code %d\n", strerror(-rc), code);
207 uinput_device_set_event_bit(struct uinput_device* dev, unsigned int type, unsigned int code)
209 return libevdev_enable_event_code(dev->d, type, code, NULL);
215 int type, code;
222 code = va_arg(args, int);
223 if (code == -1)
225 rc = libevdev_enable_event_code(dev->d, type, code, NULL);
244 uinput_device_set_abs_bit(struct uinput_device* dev, unsigned int code, const struct input_absinfo *absinfo)
246 return libevdev_enable_event_code(dev->d, EV_ABS, code, absinfo);
250 uinput_device_event(const struct uinput_device *dev, unsigned int type, unsigned int code, int value)
252 return libevdev_uinput_write_event(dev->uidev, type, code, value);
257 int type, code, value;
264 code = va_arg(args, int);
265 if (code == -1)
268 rc = uinput_device_event(dev, type, code, value);