[Wayland-bugs] [Bug 104867] Export the number of touches
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Feb 1 03:38:48 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=104867
Peter Hutterer <peter.hutterer at who-t.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlosg at gnome.org,
| |peter.hutterer at who-t.net
--- Comment #1 from Peter Hutterer <peter.hutterer at who-t.net> ---
Just a few notes: the TOUCH capability is assigned to any touch device, even
single-touch touchscreens. Whether it's single touch or multi-touch is not
exposed, but we have device->mt.slots_len with the number of slots internally.
There is no capability API outside of that, the closest we have for querying
specific devices is the libinput_device_<type>_has* set of functions to check
for buttons or keys. So libinput_device_touch_get_num_touches() would fit, and
so would libinput_device_touch_has_multitouch() for a basic boolean check.
CC-ing carlos in case he has any thoughts on using it in mutter.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180201/6209ffcc/attachment.html>
More information about the wayland-bugs
mailing list