[PATCH 02/11] Add libinput_device_has_key function
peter.hutterer at who-t.net
Thu Nov 6 17:17:03 PST 2014
On Thu, Nov 06, 2014 at 11:41:20AM -0800, Bill Spitzak wrote:
> It sure seems like an api that returned a list of all the keycodes the
> device has would be better. It looks like the client has to try every
> possible keycode to find out what exists with this.
what is the caller (which is not a wl client!) going to do with the list?
> Also there should be some unification between how these things and keyboards
> On 11/06/2014 07:37 AM, Hans de Goede wrote:
> >+evdev_device_has_key(struct evdev_device *device, uint32_t keycode)
> >+ return libevdev_has_event_code(device->evdev, EV_KEY, keycode);
More information about the wayland-devel