From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: libinput support in Eamcs?
Date: Mon, 06 Aug 2018 16:55:45 +0200 [thread overview]
Message-ID: <m3o9efbl3i.fsf@gnus.org> (raw)
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
next reply other threads:[~2018-08-06 14:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 14:55 Lars Ingebrigtsen [this message]
2018-08-06 15:44 ` libinput support in Eamcs? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3o9efbl3i.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.