From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.devel Subject: Re: Emacs touch interface Date: Mon, 4 Jan 2016 21:35:22 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11438ee86b370e0528880f94 X-Trace: ger.gmane.org 1451939755 14830 80.91.229.3 (4 Jan 2016 20:35:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jan 2016 20:35:55 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 04 21:35:44 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 1aGBqx-00064V-Tc for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 21:35:44 +0100 Original-Received: from localhost ([::1]:47023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBqx-00008G-Ai for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 15:35:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBqh-000086-FR for emacs-devel@gnu.org; Mon, 04 Jan 2016 15:35:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGBqd-0002XH-OD for emacs-devel@gnu.org; Mon, 04 Jan 2016 15:35:27 -0500 Original-Received: from mail-vk0-x236.google.com ([2607:f8b0:400c:c05::236]:33976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGBqd-0002X5-I5 for emacs-devel@gnu.org; Mon, 04 Jan 2016 15:35:23 -0500 Original-Received: by mail-vk0-x236.google.com with SMTP id a123so97400584vkh.1 for ; Mon, 04 Jan 2016 12:35:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=RR2AAHUyo60Inoj4zbfKMO3PHrJ+gm87ISou8W6oWU0=; b=lui28eXfqbv9o7sHVkgpka/pFu64pZY7VKNqZCEXcFyRj9ZTdp7mLTr4ZKmtPNdZey +rjFe6UwZ9yEIZroDak9BWu4aCtpvuYHX55W5o3zP4zZdbCCngxAcfe4D03DodhOEZVp L2Ros5km7rCFct5eEYCKzLZQxqwtr0Bi1NWi9gEM5HRh/YjiV60f/8aNAIDeoRdXt6Kv fJ1dhYGIuLimIo8SU24qJ+3EUOGP2l6hcm9YkEGf1FuTU2YwJriktsJrldccfr53093E 5qh2KEVJNgd+APpBeMUX3QclL6AinJ4DyMryuBUQNp2Tja636HbiZCNEytPeHgxNBN8X beUA== X-Received: by 10.31.54.134 with SMTP id d128mr57619313vka.26.1451939722899; Mon, 04 Jan 2016 12:35:22 -0800 (PST) Original-Received: by 10.31.214.131 with HTTP; Mon, 4 Jan 2016 12:35:22 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::236 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:197627 Archived-At: --001a11438ee86b370e0528880f94 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It would be a good idea to define the events that the different gestures should generate. That way we would reduce the risk that different implementations would come up with their own set of incompatible event names. The only implementation I know of that define gestures is the carbon "mac" port, maybe we should use its event names as precedence? It uses `sweep-left/right/up/down', `magnify-up/down', and `rotate-left/right'. -- Anders On Mon, Jan 4, 2016 at 9:10 PM, Lars Magne Ingebrigtsen wrote: > 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/gesture= s/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=C3=A9gg 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 > > > > --001a11438ee86b370e0528880f94 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It would be a good idea to define the events that the= different gestures should generate. That way we would reduce the risk that= different implementations would come up with their own set of incompatible= event names.

The only implementation I know o= f that define gestures is the carbon "mac" port, maybe we should = use its event names as precedence? It uses `sweep-left/right/up/down', = `magnify-up/down', and `rotate-left/right'.

=C2=A0 =C2=A0 -- Anders


On Mon, Jan 4, 2016 at 9:10 PM, Lars Mag= ne Ingebrigtsen <larsi@gnus.org> wrote:
Multitouch and gestures on GNU/Linux is a rather painful subject= ,
apparently.=C2=A0 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/gest= ures/collector/GestureCollector.cpp

With geis, you have access to gestures like "three fingered drag to th= e
left" and "four finger pinch" which you can then map to any = action you
like.

=C2=A0 (local-set-key [(pinch three-fingered outwards)] 'report-emacs-b= ug)

:-)

Getting this stuff into Emacs looks like a bigger project than I had
thought...=C2=A0 and you'd need completely separate implementations on<= br> GNU/Linux, Windows and OS X...

So I'm not going to look into this any further, I think.=C2=A0 The
aforementioned Touch=C3=A9gg program provides an external mapper from
gestures to key strokes, and I'm just going to use that for my one use<= br> case (an Emacs-based music player).

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




--001a11438ee86b370e0528880f94--