all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* libinput support in Eamcs?
@ 2018-08-06 14:55 Lars Ingebrigtsen
  2018-08-06 15:44 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2018-08-06 14:55 UTC (permalink / raw)
  To: emacs-devel

Over the weekend, I've been trying to grok the state of touch events in
Linux, and...  I'm not sure I understand everything.  It seems to be a
mess?

But apparently, Linux is moving away from the older input libraries
(synaptics for touchpad and libev for general events) and to libinput,
both on X and Wayland.  From what I understand, it's deemed to be The
Future.

(Please correct me if I misunderstand.)

Now, for touch events: It's complicated.  There are several layers of
things that block touch event handling, and to get at them all, you
either have to hack Gnome/gtk or use libevent directly.  (Simple events
are available, but not things like "two finger pitch".)

So I was wondering...  would it make sense to add libinput support to
Emacs?

I'm thinking of, like:

(setq events (make-network-process :family 'libinput :remote "/dev/input/input7"))

and then you'd get out something like

(:timestamp <...> :event 'button-down :x <> :y <>)

or whatever libevent returns, and you can write nice filtering functions
on that.

Or something.

You have to be in the input group to access /dev/input, though, so
that's kinda yucky.

And this is really low-level, so we'd have to write higher-level
function to translate this all to sensible events.

So I'm not sure something like this would make sense.  :-)  But what do
all y'all think?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-07  0:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-06 14:55 libinput support in Eamcs? Lars Ingebrigtsen
2018-08-06 15:44 ` Stefan Monnier
2018-08-06 15:51   ` Lars Ingebrigtsen
2018-08-06 21:28 ` Alan Third
2018-08-06 22:22   ` Philipp Stephani
2018-08-07  0:33 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.