diff --git a/libevdev/libevdev.c b/libevdev/libevdev.c index fab87cf..761ba5a 100644 --- a/libevdev/libevdev.c +++ b/libevdev/libevdev.c @@ -461,10 +461,10 @@ libevdev_set_fd(struct libevdev* dev, int fd) dev->fd = fd; - /* devices with ABS_MT_SLOT - 1 aren't MT devices, + /* devices with ABS_RESERVED aren't MT devices, see the documentation for multitouch-related functions for more details */ - if (!libevdev_has_event_code(dev, EV_ABS, ABS_MT_SLOT - 1) && + if (!libevdev_has_event_code(dev, EV_ABS, ABS_RESERVED) && libevdev_has_event_code(dev, EV_ABS, ABS_MT_SLOT)) { const struct input_absinfo *abs_info; diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h index f0f34bb..198b684 100644 --- a/libevdev/libevdev.h +++ b/libevdev/libevdev.h @@ -688,7 +688,7 @@ extern "C" { * meaning, matching the axis names in linux/input.h. Some devices merely * export a number of axes beyond the available axis list. For those * devices, the multitouch information is invalid. Specifically, if a device - * provides the ABS_MT_SLOT axis AND also the (ABS_MT_SLOT - 1) axis, the + * provides the ABS_MT_SLOT axis AND also the ABS_RESERVED axis, the * device is not treated as multitouch device. No slot information is * available and the ABS_MT axis range for these devices is treated as all * other EV_ABS axes.