[PATCH 02/11] Add libinput_device_has_key function
Bill Spitzak
spitzak at gmail.com
Thu Nov 6 11:41:20 PST 2014
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.
Also there should be some unification between how these things and
keyboards work.
On 11/06/2014 07:37 AM, Hans de Goede wrote:
> +int
> +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
mailing list