Add libinput_device_touch_get_touch_count()
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 31 Jan 2018 06:04:09 +0000 (16:04 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 30 Apr 2018 23:38:24 +0000 (09:38 +1000)
commit63e5372190606c5c124eafbc4cac753f59bb9f69
tree2a49153177ea77cd4bb04e0a6ebfe62be202af0e
parent59eb10e593213403c301a5ce3fbd0a22b6e52efd
Add libinput_device_touch_get_touch_count()

This makes it possible for callers to detect whether a touch device is
single or multitouch (or even check for things like dual-touch vs real
multi-touch) and adjust the interface accordingly.

Note that this is for touch devices only, not touchpads that are just pointer
devices.

https://bugs.freedesktop.org/show_bug.cgi?id=104867

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c
src/evdev.h
src/libinput.c
src/libinput.h
src/libinput.sym
test/test-touch.c