From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Touch events Date: Wed, 28 Jun 2017 21:50:27 +0100 Message-ID: <20170628205027.GA74167@breton.holly.idiocy.org> References: <20170624085335.GA10629@breton.holly.idiocy.org> <20170626182852.GA43847@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1498683188 6916 195.159.176.226 (28 Jun 2017 20:53:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Jun 2017 20:53:08 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Anders Lindgren , Emacs-Devel devel To: raman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 28 22:53:00 2017 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 1dQJxH-00010d-8F for ged-emacs-devel@m.gmane.org; Wed, 28 Jun 2017 22:52:55 +0200 Original-Received: from localhost ([::1]:35617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQJxJ-0005sE-B7 for ged-emacs-devel@m.gmane.org; Wed, 28 Jun 2017 16:52:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQJv1-00048z-4a for emacs-devel@gnu.org; Wed, 28 Jun 2017 16:50:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQJv0-0006SG-8R for emacs-devel@gnu.org; Wed, 28 Jun 2017 16:50:35 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:37206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQJv0-0006QI-0G for emacs-devel@gnu.org; Wed, 28 Jun 2017 16:50:34 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id i127so71340155wma.0 for ; Wed, 28 Jun 2017 13:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=HMDLBFPPfOFOSkc98K0wQ29VF1VLNi6mHnXBeGBLb5U=; b=op6kghDl3gzS5V1E0HI2ci+5b237Mo6x+BUj9Ker6maLyL81IWtO5XJC1fZ7doDUFh 1vRs7h2pM04HmVfZX7rG/D3w/Ys85/zkm47t0HF8XT8P0167AW+QnbKdihZNTHxAEFch pRPycw1GYeWqGsNHs4htu+6cZCwovP6w5yqZEHqyXwxTMm7/76L+7ovdTnjC9NChrYCV xqC4CYZHip65m8Jxk40bqdbiUD1w8GsVHu0yLSCFRrtCyj6hxTCnOM/rszD6WUNq+cvG xEaJpBDotBo606jVVlLpzzPetN1HpSbAZe8z7XXbZLwm/LmGInXXs2Vf1VjDU1bEW2ay 0ALQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=HMDLBFPPfOFOSkc98K0wQ29VF1VLNi6mHnXBeGBLb5U=; b=e1ZSgKUysoE17zSF6/hjLS6TwtrBrS7xukJpg3T1pCypgOthRX/eyQWQSaB6GRRNUM iwf8/NLnpva3zg5jYA6/tikgczBTp68N83mDXLp9lNH5ZXl/l71Tq+ONEaOVBzTbN1/z a3sfPFsmBFOFanZXe34GEf5ILsIKWXZJRoxdf2EWR81WcPMbSnND6RfGnk1Rx4q5IMuR S3yQjlWO4lVcQUW+HNIEHz1wRQCxzhnOftThT2Dk+7T9sO56uaqvXdW2KOgONbpF+L65 qJ8KtbjyBi/lICBDu9bm7SafuwpbJysfRR4kVtDgX5Utoj+VNL7gz2jYJdiQcqwBTHc8 ttBw== X-Gm-Message-State: AKS2vOzCgngv+8C1scalnK31g+3f9ug8dJRJlp0BvchHRNKl14V/wHDc NCUWgEfF55CQ0Q== X-Received: by 10.28.234.152 with SMTP id g24mr8483640wmi.43.1498683031209; Wed, 28 Jun 2017 13:50:31 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-205b-50d9-f643-4e78.holly.idiocy.org. [2001:8b0:3f8:8129:205b:50d9:f643:4e78]) by smtp.gmail.com with ESMTPSA id 185sm2332199wmu.33.2017.06.28.13.50.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jun 2017 13:50:30 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 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:216040 Archived-At: On Wed, Jun 28, 2017 at 08:14:33AM -0700, raman wrote: > Also it would be nice to think ahead and build something that works on > tablets and phones, AKA keyboardless devices. > > Emacs on those devices in turn might well offer an interesting > experimental platform for testing out different touch input mechanisms > --- given Emacs' long history of smart completion across different contexts. I’ve been looking into the Xorg side of touch events and it doesn’t have built‐in gesture support, so I think I’ll have to code that myself. I was thinking it could maybe be worth passing the touch events up to lisp and doing gesture recognition in it. That would, I think, also allow us to handle touch screen devices better as we wouldn’t have to rely on mouse emulation. The downside is that my lisp skills are woeful and on platforms where touch gestures ARE available, we might end up with differing behaviour from native apps. The best of both worlds would be if we’re able to fire off input events from within lisp code, which would let us transparently emulate system touch gestures where they’re not available, while still having access to all touch events. I don’t know if that’s possible. The other option, I suppose, is to pass gesture events from C, and also pass the basic touch events to lisp. That might be easier. I need to build an Xorg dev system and try digging into this stuff. -- Alan Third