[PATCH 02/11] Add libinput_device_has_key function

Peter Hutterer peter.hutterer at who-t.net
Fri Nov 7 21:08:02 PST 2014


On 8/11/2014 08:07 , Bill Spitzak wrote:
> Nevermind, it sounds like this is in *addition* to an api that lets you
> get the set of all keys on the device. So it is just a convenience for
> the (probably common) case where the caller is only testing for a
> particular key.

if you're talking about libinput_device_get_keys(), you'll have noticed 
that it's deprecated and slated for removal.

again: what's the point of providing a set of all keys to the caller? 
What will the caller do with that set, other than checking the set for 
certain keys? (i.e. exactly what has_key() does, with error checking, 
type safety, no custom bit macros, etc.)

Cheers,
   Peter



More information about the wayland-devel mailing list