From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Cully Newsgroups: gmane.emacs.devel Subject: Re: master 3b41141708: Expose the name of an event's input device to Lisp Date: Sat, 09 Apr 2022 13:52:52 -0400 Message-ID: <87czhqb0l2.fsf@ditto.jhoto.spork.org> References: <164933858147.29834.15050766441005536059@vcs2.savannah.gnu.org> <87ee28xyg2.fsf@yahoo.com> <83ee28az95.fsf@gnu.org> <87fsmow1hz.fsf@yahoo.com> <83a6cway59.fsf@gnu.org> <87tub4uivu.fsf@yahoo.com> <83y20fakwn.fsf@gnu.org> <87o81bu7zj.fsf@yahoo.com> <83v8vjai4s.fsf@gnu.org> <87bkxbsqfl.fsf@yahoo.com> <835yniah0u.fsf@gnu.org> <8735impqw4.fsf@yahoo.com> <83v8vi8uyu.fsf@gnu.org> <871qy6o9p3.fsf@yahoo.com> <83o81a8qnd.fsf@gnu.org> <87zgkulbuu.fsf@yahoo.com> <83ilri8iag.fsf@gnu.org> <87k0by43an.fsf@gnus.org> <838rse89vr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10593"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 29.0.50 Cc: luangruo@yahoo.com, Lars Ingebrigtsen , emacs-devel@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 09 20:00:51 2022 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 1ndFOC-0002X0-LE for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 20:00:49 +0200 Original-Received: from localhost ([::1]:60154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndFOB-0000DC-GI for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 14:00:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndFMm-0007ja-Sw for emacs-devel@gnu.org; Sat, 09 Apr 2022 13:59:22 -0400 Original-Received: from coleridge.kublai.com ([166.84.7.167]:59583 helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndFMj-0006Aa-Jz; Sat, 09 Apr 2022 13:59:19 -0400 Original-Received: from ditto (unknown [IPv6:2001:470:1f07:1b9:8650:a942:ec5e:856b]) by mail.spork.org (Postfix) with ESMTPSA id 10C9F33B8; Sat, 9 Apr 2022 13:58:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1649527125; bh=2zEz/8hlWCWgs6Ns7A9tiN65u0SxoDQLvOMUCZXHx68=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=StjdAx0HjTkZ1KdA3jily5UtEZ+DRELByTYf0/GFYjRaBzdmBJ/A3JE+vXYXXnTmA TN+xGvxwLHRX9n1mvQBiuAhDkLdBohEne5UuFRcxcF1mlcEcNtQefZc8gs1xyN7L9m M1XBoAVRwo4PWx5QaG84VKFzaJIz+Lx9EnZuFMp0= In-reply-to: <838rse89vr.fsf@gnu.org> Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:288042 Archived-At: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> (keymap-set global-mode-map "[device footpad]-b" 'do-something) >>=20 >> that would be ideal. > > I would hope that such an event could be called just 'footpad-b', so > that any device capable of such events could be implemented as > emitting it, regardless of the device name/type/etc. I may have missed this earlier in the thread, but where would these mappings of device identifier (name, USB VID:PID, whatever) to device classes come from? How would that work for devices that can be made to look like a *lot* of different input types? I=E2=80=99ve got a Steam Controller I can set up as a joystick, keyboard (HID report and boot protocols), relative and absolute mouse, all at the same time, and I can swap its functions on the fly. I=E2=80=99ve got a mouse that can send both =E2=80=9Cpixel=E2=80=9D scroll events as well as normal = line-based ones depending on how it=E2=80=99s configured. I have a programmable keyboa= rd that I can make look like any USB device I want. Is Emacs going to be responsible for mapping thousands of device identifiers to device classes (which may change at runtime?) I just don=E2=80=99t understand what this looks like from a user=E2=80=99s perspec= tive. -bjc