From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: XInput 2 support Date: Sat, 16 Oct 2021 14:29:52 +0800 Message-ID: <87bl3ph47z.fsf@yahoo.com> References: <87r1clh6nq.fsf.ref@yahoo.com> <87r1clh6nq.fsf@yahoo.com> <83ilxxij0i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29563"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 16 08:31:17 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 1mbdDx-0007Ws-DE for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Oct 2021 08:31:17 +0200 Original-Received: from localhost ([::1]:54824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbdDv-0001nn-Qw for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Oct 2021 02:31:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbdCm-000121-9z for emacs-devel@gnu.org; Sat, 16 Oct 2021 02:30:04 -0400 Original-Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]:32859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbdCk-0006i8-JY for emacs-devel@gnu.org; Sat, 16 Oct 2021 02:30:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634365800; bh=JVOK8plZZV/dxxwW75yu8Gn7imhl8nT0WWXGmQWx7X4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=OBzbbsihlY32c0LKxXL4cdWJlAJ70NbkNP2f/WmSduvNajV+Vc6mcB4Sy4G4CU2Ytmw9HxCz1tYhnjr2G0g80dOPKep1HbGaFJ+V0epJiCxR8/3gUGAYBMHcKdu55woCQf63oQ6/rhnAXd64ws4wXt2HJEaaPEF0UkM+0nmcnki8xN1TB0Ig1pEvdt1yJEPzFTvfeMWNxaRRKaeObImm+RY3Yn6VXaH9TZ+DyVS/zfT39YIUnD4niE/mdIqUKE+/9JMaz+y/HSacSBkHKYMloJPNVYiydAzV3JcE2ZMBZBbzT21gUtevgpJs/oI9JZgw+0RFq2BR+S/zXALFEYoGBQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634365800; bh=xNCaLVpvxjdUT6BuIWXEGegGmCUHk8DvFs88bPYEnzr=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=o5Jjv+iSDC8IT0tqzBXRCX/qWHoFDndgMGXg5BGXvhR3ufmYojMl9+SdVw3zrQOZhMlmmvKvjnUR9QMyingAY5Cf0eBXrCYvbFhIs83/MIWreZK3KvJOvNxSVT7+h6sQNEhjxZf2ASB+9ycQoI7EJpW6fvYlK9MoCFYw0GarWKkgdtjLoT+xSMuD3jgAxvJfEg6U5m6exUKNN6kMG0ULwmQT3m/0JBSBPVEfweL1gR3QMA3MHddkPBB7UXgNdaomnQ1xbkUi/4Hh7hdoxT7TOPHSLnjcC6G/slJQZRb3t8exmrg/q/Nn4sH9v1v5o27RxhNa51R99yAhO8BElrEmsQ== X-YMail-OSG: PJ6TdugVM1lwp_6HXex6YmUrgY5q.F9irqcbu5lTBRzT8o_uglgLifos63Ur3me nxu8yBRlavQI5u9zkeYMZ3rqY_uMXKLinESFe0cWUFM90ot.DkaRANnj2Qe0VKzvFF0TqJQI7Awc JiGPQV3PKByGZOXu.DAhFGpD8hPNHfd7r3iYs6Xeiil5YWNFINMgdQuePrQq5JBX6R464pg0ky11 WQfbpcZfv7MoQ2J1lzqbclaaLz2NLp0NNE.pLG93WN70cmZqTE3KOB9uqbU_8SLPd4iWhjq0sjSs MU3Ni8G9SK_JLRoW6HXlEh6IiUMhXKgd6g1tk7cQLFv1Fp11c7IskBw_WQL1SEFVh7U1_Yq.xgG7 E0jKYr.H4uAEsTylUS29P0MzvvT96kHMGXHDtWAIOs3mvduK_5VCk1EBAGtKOnOug3eZGcgmtnYK 10EHv.GnYQVSoiyJ_yDsZHMkiCxPH68apB6X7BQo.g3Fx.k8yWwWlSaXzEO8jupW5L4ESEDnGdTK HX17XdOuJaqLjva1rPFZ1vI5OyO3iiU9PkkgxgsJjMIxDw6P.rEqALyYyinxWMgMq1yw654SX6z4 aPNMGpe2FABIhU7a7dg685_Z4Dgb3DCOvUKn2dQKH9D1iX0gpmQrD83sFFwbuB0q_zw74ERu5Jc6 DZGIX4hvEiPcVLUb5TI3Wj8UlIZhdVp36Q9HfBD6s.2IA4H1vn5ltzYNsB_XVoxIS_WoZs9R43_O i3YUyU5oN3Mgmyt6zEsMVTdAgiSb7HQFib3uI10K9eKxWA18hU59OMezjuC3MAR4WyL9U.HukiFv JrKBpag1nvReCLer0jQwz.tSmku0d8rOsZDDaQETC9 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Sat, 16 Oct 2021 06:30:00 +0000 Original-Received: by kubenode517.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID cf6404fe0bb08ada2d464e834df1e108; Sat, 16 Oct 2021 06:29:55 +0000 (UTC) In-Reply-To: <83ilxxij0i.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 Oct 2021 09:25:01 +0300") X-Mailer: WebService/1.1.19116 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.146; envelope-from=luangruo@yahoo.com; helo=sonic303-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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.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:277150 Archived-At: Eli Zaretskii writes: > Who or what will promise us that XInput 2 will not be removed by those > same developers? XInput 2 is currently the standard modern input handling extension on X-Windows, and GTK uses it to provide input features such as smooth scrolling and touchscreen support on X-Windows whenever available. The legacy Core Input code is not as well maintained, and is missing certain features. > 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? I've already done that where possible (see the variables `ev' and `bv' under "case GenericEvent:"). Everywhere else, I'm not comfortable with preprocessing these XI events into X events. > 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. None at all. The code falls back to Core Input if the X Server does not have XInput2 installed, and the behaviour is identical when using both. Thanks.