diff options
| author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-06-22 19:45:39 +1000 |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-06-27 10:41:54 +1000 |
| commit | b10444f82ffc0a843ab693913b830ed73e08fcbb (patch) | |
| tree | f76455aa6965bd5d457dfdb870d1237b1e0c9d1d /libevdev/libevdev.h | |
| parent | 960dc91844fc0fc30ed180dd2c6d70e927e8ceec (diff) | |
| download | libevdev-b10444f82ffc0a843ab693913b830ed73e08fcbb.tar.gz | |
Slots are now definitely zero-indexed, see recent kernel patch
doc: specify that ABS_MT_SLOT must have a minimum of 0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'libevdev/libevdev.h')
| -rw-r--r-- | libevdev/libevdev.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h index 9d2991e..613d930 100644 --- a/libevdev/libevdev.h +++ b/libevdev/libevdev.h @@ -533,11 +533,11 @@ int libevdev_fetch_slot_value(const struct libevdev *dev, unsigned int slot, uns * * 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); |
