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);
+}
+

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to