public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad?
Date: Thu, 25 Aug 2022 20:16:55 -0400	[thread overview]
Message-ID: <YwgQ9wvV9RVG3rhA@waltdnes.org> (raw)
In-Reply-To: <KMWCABV7.3VUM5TP5.BUYLSWE3@SUI23232.6BUBLVLT.VYDDTHT2>

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 <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


  reply	other threads:[~2022-08-26  0:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24 12:16 [gentoo-user] Software emulation of angled arrow keys on Lenovo Thinkpad? Walter Dnes
2022-08-24 17:07 ` Jack
2022-08-24 21:21   ` Walter Dnes
2022-08-24 21:58     ` Jack
2022-08-26  0:16       ` Walter Dnes [this message]
2022-08-27  7:30         ` Walter Dnes
2022-08-28  2:54           ` Jack
2022-08-27 21:46         ` Jack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YwgQ9wvV9RVG3rhA@waltdnes.org \
    --to=waltdnes@waltdnes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox