Add libinput_device_pointer_has_button over the plain has_button
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Feb 2015 04:36:56 +0000 (14:36 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Feb 2015 04:36:56 +0000 (14:36 +1000)
commit761baeb6e608a73bbcb464d998ca24ba09d282de
tree4bbc0c9cbfb5869d9a9617e9a938fc8491b7a9a7
parenta9f216ab47ea2f643f20ed741b741a2b5766eba3
Add libinput_device_pointer_has_button over the plain has_button

If a device has multiple capabilities, has_button is imprecise. A device with
tablet and pointer capability for example may have BTN_LEFT on the pointer
interface but not on the tablet interface.

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