From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F3E1E158095 for ; Fri, 26 Aug 2022 00:17:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A74B9E0974; Fri, 26 Aug 2022 00:16:58 +0000 (UTC) Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31D09E08C3 for ; Fri, 26 Aug 2022 00:16:58 +0000 (UTC) X-ASG-Debug-ID: 1661473008-0c856e13ff55220001-LfjuLa Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id 79Dw55Md2IaZ2aSb (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 25 Aug 2022 20:16:48 -0400 (EDT) X-Barracuda-Envelope-From: waltdnes@waltdnes.org X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from waltdnes.org (unknown [198.58.217.41]) by smtp.ebox.ca (Postfix) with SMTP id C9420441B21 for ; Thu, 25 Aug 2022 20:16:47 -0400 (EDT) Received: by waltdnes.org (sSMTP sendmail emulation); Thu, 25 Aug 2022 20:16:55 -0400 X-Barracuda-RBL-IP: 198.58.217.41 X-Barracuda-Effective-Source-IP: 198-58-217-41.on.cable.ebox.net[198.58.217.41] X-Barracuda-Apparent-Source-IP: 198.58.217.41 From: "Walter Dnes" Date: Thu, 25 Aug 2022 20:16:55 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad? Message-ID: X-ASG-Orig-Subj: Re: [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad? References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1661473008 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 6157 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.100332 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: 1976efe1-e7d5-4515-9acd-9ec24efb0636 X-Archives-Hash: b6e4305ac9a2edc8e7903f9c2b576737 On Wed, Aug 24, 2022 at 05:58:28PM -0400, Jack wrote > Ah - I expect the game is interpreting keycodes fairly directly. You > can use xev (or similar) to find what the various keys are currently > producing, and there must be some (Xorg related) program to translate > them to whatever the program is expecting - perhaps determined by using > xev with a "proper" keyboard. 1..9 on a real keyboard numeric keypad. The "XLookupString" line tells you which key is pressed. I think the "keycode" entry is what is being acted on by the game. Google seems to indicate that setxkbmap is what I need, Once I emerge it, then what? KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031605618, (-448,387), root:(368,623), state 0x10, keycode 87 (keysym 0xffb1, KP_1), same_screen YES, XLookupString gives 1 bytes: (31) "1" XmbLookupString gives 1 bytes: (31) "1" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031605778, (-448,387), root:(368,623), state 0x10, keycode 87 (keysym 0xffb1, KP_1), same_screen YES, XLookupString gives 1 bytes: (31) "1" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031650802, (105,320), root:(921,556), state 0x10, keycode 88 (keysym 0xffb2, KP_2), same_screen YES, XLookupString gives 1 bytes: (32) "2" XmbLookupString gives 1 bytes: (32) "2" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031650962, (105,320), root:(921,556), state 0x10, keycode 88 (keysym 0xffb2, KP_2), same_screen YES, XLookupString gives 1 bytes: (32) "2" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031840786, (76,301), root:(892,537), state 0x10, keycode 89 (keysym 0xffb3, KP_3), same_screen YES, XLookupString gives 1 bytes: (33) "3" XmbLookupString gives 1 bytes: (33) "3" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031840946, (76,301), root:(892,537), state 0x10, keycode 89 (keysym 0xffb3, KP_3), same_screen YES, XLookupString gives 1 bytes: (33) "3" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031846434, (76,301), root:(892,537), state 0x10, keycode 83 (keysym 0xffb4, KP_4), same_screen YES, XLookupString gives 1 bytes: (34) "4" XmbLookupString gives 1 bytes: (34) "4" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031846594, (76,301), root:(892,537), state 0x10, keycode 83 (keysym 0xffb4, KP_4), same_screen YES, XLookupString gives 1 bytes: (34) "4" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031849730, (76,301), root:(892,537), state 0x10, keycode 84 (keysym 0xffb5, KP_5), same_screen YES, XLookupString gives 1 bytes: (35) "5" XmbLookupString gives 1 bytes: (35) "5" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031849874, (76,301), root:(892,537), state 0x10, keycode 84 (keysym 0xffb5, KP_5), same_screen YES, XLookupString gives 1 bytes: (35) "5" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031852754, (76,301), root:(892,537), state 0x10, keycode 85 (keysym 0xffb6, KP_6), same_screen YES, XLookupString gives 1 bytes: (36) "6" XmbLookupString gives 1 bytes: (36) "6" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031852914, (76,301), root:(892,537), state 0x10, keycode 85 (keysym 0xffb6, KP_6), same_screen YES, XLookupString gives 1 bytes: (36) "6" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031960290, (74,286), root:(890,522), state 0x10, keycode 79 (keysym 0xffb7, KP_7), same_screen YES, XLookupString gives 1 bytes: (37) "7" XmbLookupString gives 1 bytes: (37) "7" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031960418, (74,286), root:(890,522), state 0x10, keycode 79 (keysym 0xffb7, KP_7), same_screen YES, XLookupString gives 1 bytes: (37) "7" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031963218, (74,286), root:(890,522), state 0x10, keycode 80 (keysym 0xffb8, KP_8), same_screen YES, XLookupString gives 1 bytes: (38) "8" XmbLookupString gives 1 bytes: (38) "8" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031963378, (74,286), root:(890,522), state 0x10, keycode 80 (keysym 0xffb8, KP_8), same_screen YES, XLookupString gives 1 bytes: (38) "8" XFilterEvent returns: False KeyPress event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031966946, (74,286), root:(890,522), state 0x10, keycode 81 (keysym 0xffb9, KP_9), same_screen YES, XLookupString gives 1 bytes: (39) "9" XmbLookupString gives 1 bytes: (39) "9" XFilterEvent returns: False KeyRelease event, serial 38, synthetic NO, window 0x1000001, root 0x76b, subw 0x0, time 2031967074, (74,286), root:(890,522), state 0x10, keycode 81 (keysym 0xffb9, KP_9), same_screen YES, XLookupString gives 1 bytes: (39) "9" XFilterEvent returns: False -- Walter Dnes I don't run "desktop environments"; I run useful applications