From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Touchscreen support Date: Thu, 16 Dec 2021 08:58:03 +0100 Message-ID: <87a6h13rsk.fsf@gnus.org> References: <87czlxkntg.fsf.ref@yahoo.com> <87czlxkntg.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21909"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Po Lu To: Po Lu via "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 16 08:58:57 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxlfE-0005WQ-Gx for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 08:58:56 +0100 Original-Received: from localhost ([::1]:52230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxlfD-0002IP-5N for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 02:58:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxlea-0001cw-P0 for emacs-devel@gnu.org; Thu, 16 Dec 2021 02:58:16 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=50418 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxleY-0006sW-RS for emacs-devel@gnu.org; Thu, 16 Dec 2021 02:58:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YsacwRA8XYaDQuW2mj5Kqr/tG0GqkTLvSTo8h7R6uCQ=; b=O5Xac7fGbHecUllnX5KLqg03zY irLcRan+IpO6v1b5wWLuBrpGLK26ib16NTzE9wuLHGphlO5YIBfqfawQ2/uszXHEp7PL1smNhUhXn JmzUFfo68txeOUWig/l2nzzdskWrTRpVNTgyfTDGV3d90/etlFfB6hjtb5tg7Z6qNDfs=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxleP-0004Gh-3h; Thu, 16 Dec 2021 08:58:07 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEXNuarHq5SyjnHf 0r2aLDpQLStHLCr///9aH4LaAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UMEAc3LyEtEecAAAGZSURB VDjLndGxUsMwDAZgB67McWh34guZC4YHaM9mBs7STi7S+z8CsmKXQtMFLbn4s37HijH/raa9Aje3 +yvir4LIap733pj9SqvPJU126FfA3yDytL9c9yMznMOtrwBMs7mEPYPUCtwR4C+oR7xwhnZFMEc9 nEO7wOYvdFPJIgA8gy1ngHv/+qdj5C/vX5kfRkgA77JiC8Dnk39DZmQBODS2wA4n1zGTCPKMUwUr 0A0sc2JCJvgs0JgNTM+PhLJdDKhAa9zI07DLJyhAsgLWNk7eeX5kLTmbC2x1KwU6ASm0owakAIgk 6yhh/QK4QFwa8hco2HG5WIgyp9+g2SG8pRA0irh3vcCuQAwh6P9gPjh3gqSQ4wQ+LiAo0FcBGZCA FkK+/qTQEfxAzEk8dc70dpl3Bd01S0eKUa6HFYJ8r87GcCkqENIQQAJNndwcfipKXAbM102nRS00 pJcFnk9nSMnDkP4BrBD19wKBqROtUa6UOTqXB1rPPdhcnUDjbMzbhgWOed1lGNLSOtSorkTVzArH /HK8Bm5w38Sz4AMzeJCqAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEyLTE2VDA3OjU1OjQ3KzAw OjAwdbDMCAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMi0xNlQwNzo1NTo0NyswMDowMATtdLQA AAAASUVORK5CYII= X-Now-Playing: Dead Can Dance's _Spleen and Ideal_: "De Profundis (Out of the Depths of Sorrow)" In-Reply-To: <87czlxkntg.fsf@yahoo.com> (Po Lu via's message of "Thu, 16 Dec 2021 15:31:55 +0800") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282127 Archived-At: Po Lu via "Emacs development discussions." writes: > I implemented the events required for full touchscreen support for > XInput 2. These events are generated only for DirectTouch devices, > which means real touchscreens only, no touchpads. That's fantastic -- proper touchscreen support is something I've been wanting to have in Emacs for at least a decade. One question: > Please take a look and see if the API I'm exposing is useful, and also > easy enough to implement on non-X platforms. > +The low-level touchscreen events described below can be used to > +implement all the touch sequences described above. In those events, > +each point is represented by a cons of an arbitrary number identifying > +the point and a mouse position list (@pxref{Click Events}) specifying > +the position of the finger when the event occurred. What would the implementation of a (for instance) "three finger swipe left" event look like based on these primitives? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no