|
|
Subscribe / Log in / New account

Libinput is done

Libinput is done

Posted Jul 28, 2016 14:13 UTC (Thu) by ballombe (subscriber, #9523)
Parent article: Libinput is done

So, is it possible to write a gpm-replacement based on libinput ?


to post comments

Libinput is done

Posted Jul 28, 2016 20:54 UTC (Thu) by ballombe (subscriber, #9523) [Link] (10 responses)

Unfortunately it does not seems the libinput API is documented beyond the doxygen output which is not useful, so the answer is probably no.

Libinput is done

Posted Jul 28, 2016 22:48 UTC (Thu) by whot (subscriber, #50317) [Link] (9 responses)

what documentation do you need beyond the API docs?

Libinput is done

Posted Jul 29, 2016 15:33 UTC (Fri) by ballombe (subscriber, #9523) [Link] (8 responses)

To start with, a minimal example of a program using the library.

The problem is that the documentation just lists functions without the relationship between them.

Libinput is done

Posted Jul 29, 2016 21:33 UTC (Fri) by whot (subscriber, #50317) [Link] (7 responses)

in the libinput repo there are tools/event-debug.c (commandline tool) and tools/event-gui.c. (a GTK debug tool). Plus there's the xf86-input-libinput X.Org driver which is an example of using libinput inside a device management system that has other approaches than libinput (device discovery and fd handling is a bit weird and overly complicated). With those three you should be able to get started.

Libinput is done

Posted Jul 30, 2016 18:42 UTC (Sat) by ballombe (subscriber, #9523) [Link] (6 responses)

tools/event-debug.c sure is useful but there is no instructions how to compile it in a stand-alone way (i.e. outside the libinput directory).

I means, I think I will manage, but it really feel like it was intended that only libinput developers would write libinput programs.

Libinput is done

Posted Jul 30, 2016 21:36 UTC (Sat) by whot (subscriber, #50317) [Link] (4 responses)

libinput provides a pkgconfig file which is pretty standard for libraries these days. If you don't use that, you'll have to assemble the makeflags/includes yourself but even that shouldn't be much of an issue.

Libinput is done

Posted Jul 31, 2016 15:10 UTC (Sun) by ballombe (subscriber, #9523) [Link] (3 responses)

True, but this is not sufficient to compile tools/event-debug.c, so it does not serve as an example file.

Libinput is done

Posted Aug 1, 2016 3:56 UTC (Mon) by whot (subscriber, #50317) [Link] (2 responses)

I've pushed updated basic documentation to the frontpage of:
https://wayland.freedesktop.org/libinput/doc/latest/index...

Libinput is done

Posted Aug 1, 2016 12:42 UTC (Mon) by ballombe (subscriber, #9523) [Link] (1 responses)

Excellent!
If you want an example of proper library documentation I suggest this one
<http://gegl.org/> from a recent LWN item.

Libinput is done

Posted Aug 1, 2016 23:58 UTC (Mon) by whot (subscriber, #50317) [Link]

thanks, I'll have a look.

note that libinput is a bit special, it's not a generic library that we expect applications to use. there is a very limited number of expected libinput users (most Wayland compositors and the xorg driver) and a few others like research projects and PoCs. but compared to gegl it's not a generic user-facing library, so the documentation requirements are a bit different (i.e. we can ignore most of the entry-level stuff)

Libinput is done

Posted Aug 7, 2016 9:40 UTC (Sun) by ballombe (subscriber, #9523) [Link]

Yes I managed! Release 0.0.0 of my project is at <https://alioth.debian.org/projects/consolation/>.
Thanks for your encouragement!
Outside the doc issues, libinput is great!


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds