doc: specify that ABS_MT_SLOT must have a minimum of 0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
dev->abs_info[i] = abs_info;
if (i == ABS_MT_SLOT) {
- dev->num_slots = abs_info.maximum + 1; /* FIXME: non-zero min? */
+ dev->num_slots = abs_info.maximum + 1;
dev->current_slot = abs_info.value;
}
*
* Get the number of slots supported by this device.
*
- * Note that the slot offset may be non-zero, use libevdev_get_abs_min() or
- * libevdev_get_abs_info() to get the minimum slot number.
- *
* @return The number of slots supported, or -1 if the device does not provide
* any slots
+ *
+ * @note A device may provide ABS_MT_SLOT but a total number of 0 slots. Hence
+ * the return value of -1 for "device does not provide slots at all"
*/
int libevdev_get_num_slots(const struct libevdev *dev);