[PATCH libinput] Add libinput_device_pointer_has_button over the plain has_button

Bill Spitzak spitzak at gmail.com
Mon Feb 16 13:19:38 PST 2015

On 02/16/2015 01:05 PM, Peter Hutterer wrote:

> besides, this doesn't really help, you usually want to know if a device has
> a specific button well before you get the first event. so the real source
> to use here would be the capability. That could make sense, I'll have a look
> at this, the API would be something like:
> libinput_device_has_button(LIBINPUT_DEVICE_CAP_POINTER,
>                             button);

Yes that sounds like what I was thinking of.

More information about the wayland-devel mailing list