From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: XInput 2 support Date: Sat, 16 Oct 2021 09:25:01 +0300 Message-ID: <83ilxxij0i.fsf@gnu.org> References: <87r1clh6nq.fsf.ref@yahoo.com> <87r1clh6nq.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7417"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 16 08:26:28 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 1mbd9H-0001oz-FX for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Oct 2021 08:26:27 +0200 Original-Received: from localhost ([::1]:52140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbd9G-0008DR-0V for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Oct 2021 02:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbd7t-0007M5-BK for emacs-devel@gnu.org; Sat, 16 Oct 2021 02:25:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40368) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbd7s-0007ev-9x; Sat, 16 Oct 2021 02:25:00 -0400 Original-Received: from [87.69.77.57] (port=2486 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbd7r-00013T-TW; Sat, 16 Oct 2021 02:25:00 -0400 In-Reply-To: <87r1clh6nq.fsf@yahoo.com> (message from Po Lu on Sat, 16 Oct 2021 13:37:13 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:277149 Archived-At: > From: Po Lu > Date: Sat, 16 Oct 2021 13:37:13 +0800 > > I hacked up support for handling XInput 2 events, though it hasn't > undergone any serious testing yet. Thanks. Would people who have this installed try the patch and report what they see? > So the only advantage of this code over the existing Core Input code as > of present would be not relying on a fragile environment variable > (GDK_CORE_DEVICE_EVENTS) to work properly in GTK 3 builds. Call me > paranoid, but this variable reeks of something that the GTK developers > will remove at some point in the future. (AFAIK, it's already been > removed in GTK 4). Who or what will promise us that XInput 2 will not be removed by those same developers? > However, it paves the way for future support of high-resolution > scrollwheels, multi-touch trackpad support, and much more. > > Would this support be worth installing? Thanks. Much of the code seems to be just a copy of the existing code in xterm.c, just with different events. Would it be possible to preprocess XInput 2 events into X events, and then call the existing code, instead of copy/paste-ing it? Also, do these changes have any effect on user-visible behavior, or on how users must set up their systems or how they use Emacs? If so, there should be suitable changes to the documentation.