From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Emacs touch interface Date: Mon, 04 Jan 2016 21:10:11 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1451938249 21312 80.91.229.3 (4 Jan 2016 20:10:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jan 2016 20:10:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 04 21:10:39 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGBSg-0007s9-JX for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 21:10:38 +0100 Original-Received: from localhost ([::1]:46940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBSf-0001B3-1v for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 15:10:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBSb-0001A5-Cr for emacs-devel@gnu.org; Mon, 04 Jan 2016 15:10:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGBSY-0006K9-13 for emacs-devel@gnu.org; Mon, 04 Jan 2016 15:10:33 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBSX-0006JT-Qc for emacs-devel@gnu.org; Mon, 04 Jan 2016 15:10:29 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGBSU-0007iX-J6 for emacs-devel@gnu.org; Mon, 04 Jan 2016 21:10:26 +0100 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jan 2016 21:10:26 +0100 Original-Received: from larsi by cm-84.215.1.64.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jan 2016 21:10:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.1.64.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWnek3Oq3z979QxEAjl yp5vQyPz3rtalPhFAAACdUlEQVQ4jW2UPXPjIBCGl4lwzV6w6oTJUPtGp974CDUeQh9pyP7/n3Av 2ClyCYUk77Mf8C5rqpmt7M7LWLtz+AzMhgCS4Oewu7H8Hdhh8Ijxd9BSYID55unv/iO6A0oj85cl jSlTkv/tA1BO3wKca4Go2u92bIxIzz8AiaToJ+Absfn1A3CN7PHgcDD/ZQfeyQ3EtIUb8cwXKIeI SLPfKtbI6PVaVQLYiNX+XpZlrW8dnJd1rXnv22UljwvWekUu/3AHmyGdpXSw1OTcc4G5g3OFuvIw wDqJnMHhur/oSktud3BIXqNWLaf9uXYQjwMsbxdfFmyvrPtH7anm7QbypSdFFSWvN/BZ5DrdPqb4 uC605pRe11t1A/eyZMPHshAC7WaQWNfrsV456ClMKEtZtSQSzaHpycw4ZIvBSgcccU0CmnI8lQNU CdFw1ABGoekNAJWzc08l68qokelqASx0OpV6cX+XtSwQCaCiuVuETn8KtIeiXbsVlyGb2T1b95Qn DXCXIRONKpLcM+lad2eG1qvGZSDWKsb9BTKRc+8j4KTJcrAIsxdInZWTD+q6EECMiZlsajrnyYnh 3mhDHbTIHFMzSim/KQtwOhNxB8HGJMHy5F+nBvDb6A4ktdaixBRnH1JvqOIRIVG6kJKgjQhANaaS srHZPq67HyMn7XEhcwRASMD53N4anrKhfZYBmDlwn0Kx0vOF+HCVoDuw3Cfdy4xaDqAcGqYcqWzg 7gr/2CPCOm9QbQDb7TgJHEI45xhwubBf7qChVuS5qTPexwEUqsQY0RhDNryZaJT+BBAsoBtH3KiJ I+X6CczU/2+yJgpWhT5epfwDWNDhd3RmDsUAAAAASUVORK5CYII= Mail-Copies-To: never User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:Z5zjHnDp5XajXBYhJDYNXn08n0M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197623 Archived-At: Multitouch and gestures on GNU/Linux is a rather painful subject, apparently. If you google for it, you get a lot of outdated information, but apparently the modern way to get access to gestures is via a library called "geis": http://people.canonical.com/~stephenwebb/geis-v2-api/using_geis_v1.html Here's an example program that uses this stuff: https://github.com/JoseExposito/touchegg/blob/master/src/touchegg/gestures/collector/GestureCollector.cpp With geis, you have access to gestures like "three fingered drag to the left" and "four finger pinch" which you can then map to any action you like. (local-set-key [(pinch three-fingered outwards)] 'report-emacs-bug) :-) Getting this stuff into Emacs looks like a bigger project than I had thought... and you'd need completely separate implementations on GNU/Linux, Windows and OS X... So I'm not going to look into this any further, I think. The aforementioned Touchégg program provides an external mapper from gestures to key strokes, and I'm just going to use that for my one use case (an Emacs-based music player). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no