From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: libinput support in Eamcs? Date: Mon, 06 Aug 2018 16:55:45 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1533567753 11384 195.159.176.226 (6 Aug 2018 15:02:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2018 15:02:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 06 17:02:29 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmh1g-0002qB-D8 for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 17:02:28 +0200 Original-Received: from localhost ([::1]:34553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmh3n-0006Ww-6c for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 11:04:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmgvO-0007Jq-OH for emacs-devel@gnu.org; Mon, 06 Aug 2018 10:55:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmgvJ-0008EW-TE for emacs-devel@gnu.org; Mon, 06 Aug 2018 10:55:58 -0400 Original-Received: from [195.159.176.226] (port=56814 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmgvJ-0008E6-Jt for emacs-devel@gnu.org; Mon, 06 Aug 2018 10:55:53 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fmgtA-0001TJ-1b for emacs-devel@gnu.org; Mon, 06 Aug 2018 16:53:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 45 Original-X-Complaints-To: usenet@blaine.gmane.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEUJBAH///IMBwP+/vBk XU66tZ////MVDworJR5lkne3AAACEUlEQVQ4jXWUwYsbIRTGH17S6zAw50EWzHWwYefYLU7jNRjb XsNCzkW26HEpLvpn91MnJd1kPxCCv/e993w6IQlN51uRlF3X4cfpBkwN3DgmgPfRDcAwdHdSTf0z UD8ADMM16KYBQPa9NNbYw2X/REjUl5alMTtrzRWQ/VTBzhhp5RWYVtA0XJrAAa/3J3npgOT/mrr7 AI7zfUcpM3wAMNahgM/qjr4DPPKRuODEBId8yJA/FOCJiGHxERGcCw+ZDiBTE+OOc+IMNm96gPSn gRrKm8dIknPaj2UfcTlV8g/o15JH1LqFCBcq8OoLi3sYakOpOCp43GTNFZL4XIHjPq0gxL3WKYcG PA8ApSuxjeqo6q6ulrA6hNBHneNlGhkpw+G5jGSrdMxZqcUqq1RxhcMJgD4hHmSxAFggwRQHbZEc KyK8eIqlpiK0k0TyQcdaqIDimCknJjAGEY8qNpBKjZllx8rsHuTOHtezVCCSY0x497vUTnWS/gkX NW+8G1lI7u0YFvsDuyTcU3FsHHESI71psdivKe85b4CNIyf/i9TeRatRHHP/dl67GsMrU9694PgZ F+wrYLhbvs3xp3cPADD6BvB8yGWVnc9LHaaOoYJ24yIgeCmzelkf3OyIMRL1NiJmrKJWuaXiDG9h I0K9JyS6OPgq7+qjCngptTg+yVsVx2noeokP993/Bg3n+/oQ/AUNL1iiii+VvgAAAABJRU5ErkJg gg== Mail-Copies-To: never Cancel-Lock: sha1:VmHYV72soxWgW2mFGBQNiIjF3Yo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228217 Archived-At: 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