1 |
On Wed, Aug 24, 2022 at 05:58:28PM -0400, Jack wrote |
2 |
|
3 |
> Ah - I expect the game is interpreting keycodes fairly directly. You |
4 |
> can use xev (or similar) to find what the various keys are currently |
5 |
> producing, and there must be some (Xorg related) program to translate |
6 |
> them to whatever the program is expecting - perhaps determined by using |
7 |
> xev with a "proper" keyboard. |
8 |
|
9 |
1..9 on a real keyboard numeric keypad. The "XLookupString" line |
10 |
tells you which key is pressed. I think the "keycode" entry is what is |
11 |
being acted on by the game. Google seems to indicate that setxkbmap is |
12 |
what I need, Once I emerge it, then what? |
13 |
|
14 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
15 |
root 0x76b, subw 0x0, time 2031605618, (-448,387), root:(368,623), |
16 |
state 0x10, keycode 87 (keysym 0xffb1, KP_1), same_screen YES, |
17 |
XLookupString gives 1 bytes: (31) "1" |
18 |
XmbLookupString gives 1 bytes: (31) "1" |
19 |
XFilterEvent returns: False |
20 |
|
21 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
22 |
root 0x76b, subw 0x0, time 2031605778, (-448,387), root:(368,623), |
23 |
state 0x10, keycode 87 (keysym 0xffb1, KP_1), same_screen YES, |
24 |
XLookupString gives 1 bytes: (31) "1" |
25 |
XFilterEvent returns: False |
26 |
|
27 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
28 |
root 0x76b, subw 0x0, time 2031650802, (105,320), root:(921,556), |
29 |
state 0x10, keycode 88 (keysym 0xffb2, KP_2), same_screen YES, |
30 |
XLookupString gives 1 bytes: (32) "2" |
31 |
XmbLookupString gives 1 bytes: (32) "2" |
32 |
XFilterEvent returns: False |
33 |
|
34 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
35 |
root 0x76b, subw 0x0, time 2031650962, (105,320), root:(921,556), |
36 |
state 0x10, keycode 88 (keysym 0xffb2, KP_2), same_screen YES, |
37 |
XLookupString gives 1 bytes: (32) "2" |
38 |
XFilterEvent returns: False |
39 |
|
40 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
41 |
root 0x76b, subw 0x0, time 2031840786, (76,301), root:(892,537), |
42 |
state 0x10, keycode 89 (keysym 0xffb3, KP_3), same_screen YES, |
43 |
XLookupString gives 1 bytes: (33) "3" |
44 |
XmbLookupString gives 1 bytes: (33) "3" |
45 |
XFilterEvent returns: False |
46 |
|
47 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
48 |
root 0x76b, subw 0x0, time 2031840946, (76,301), root:(892,537), |
49 |
state 0x10, keycode 89 (keysym 0xffb3, KP_3), same_screen YES, |
50 |
XLookupString gives 1 bytes: (33) "3" |
51 |
XFilterEvent returns: False |
52 |
|
53 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
54 |
root 0x76b, subw 0x0, time 2031846434, (76,301), root:(892,537), |
55 |
state 0x10, keycode 83 (keysym 0xffb4, KP_4), same_screen YES, |
56 |
XLookupString gives 1 bytes: (34) "4" |
57 |
XmbLookupString gives 1 bytes: (34) "4" |
58 |
XFilterEvent returns: False |
59 |
|
60 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
61 |
root 0x76b, subw 0x0, time 2031846594, (76,301), root:(892,537), |
62 |
state 0x10, keycode 83 (keysym 0xffb4, KP_4), same_screen YES, |
63 |
XLookupString gives 1 bytes: (34) "4" |
64 |
XFilterEvent returns: False |
65 |
|
66 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
67 |
root 0x76b, subw 0x0, time 2031849730, (76,301), root:(892,537), |
68 |
state 0x10, keycode 84 (keysym 0xffb5, KP_5), same_screen YES, |
69 |
XLookupString gives 1 bytes: (35) "5" |
70 |
XmbLookupString gives 1 bytes: (35) "5" |
71 |
XFilterEvent returns: False |
72 |
|
73 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
74 |
root 0x76b, subw 0x0, time 2031849874, (76,301), root:(892,537), |
75 |
state 0x10, keycode 84 (keysym 0xffb5, KP_5), same_screen YES, |
76 |
XLookupString gives 1 bytes: (35) "5" |
77 |
XFilterEvent returns: False |
78 |
|
79 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
80 |
root 0x76b, subw 0x0, time 2031852754, (76,301), root:(892,537), |
81 |
state 0x10, keycode 85 (keysym 0xffb6, KP_6), same_screen YES, |
82 |
XLookupString gives 1 bytes: (36) "6" |
83 |
XmbLookupString gives 1 bytes: (36) "6" |
84 |
XFilterEvent returns: False |
85 |
|
86 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
87 |
root 0x76b, subw 0x0, time 2031852914, (76,301), root:(892,537), |
88 |
state 0x10, keycode 85 (keysym 0xffb6, KP_6), same_screen YES, |
89 |
XLookupString gives 1 bytes: (36) "6" |
90 |
XFilterEvent returns: False |
91 |
|
92 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
93 |
root 0x76b, subw 0x0, time 2031960290, (74,286), root:(890,522), |
94 |
state 0x10, keycode 79 (keysym 0xffb7, KP_7), same_screen YES, |
95 |
XLookupString gives 1 bytes: (37) "7" |
96 |
XmbLookupString gives 1 bytes: (37) "7" |
97 |
XFilterEvent returns: False |
98 |
|
99 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
100 |
root 0x76b, subw 0x0, time 2031960418, (74,286), root:(890,522), |
101 |
state 0x10, keycode 79 (keysym 0xffb7, KP_7), same_screen YES, |
102 |
XLookupString gives 1 bytes: (37) "7" |
103 |
XFilterEvent returns: False |
104 |
|
105 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
106 |
root 0x76b, subw 0x0, time 2031963218, (74,286), root:(890,522), |
107 |
state 0x10, keycode 80 (keysym 0xffb8, KP_8), same_screen YES, |
108 |
XLookupString gives 1 bytes: (38) "8" |
109 |
XmbLookupString gives 1 bytes: (38) "8" |
110 |
XFilterEvent returns: False |
111 |
|
112 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
113 |
root 0x76b, subw 0x0, time 2031963378, (74,286), root:(890,522), |
114 |
state 0x10, keycode 80 (keysym 0xffb8, KP_8), same_screen YES, |
115 |
XLookupString gives 1 bytes: (38) "8" |
116 |
XFilterEvent returns: False |
117 |
|
118 |
KeyPress event, serial 38, synthetic NO, window 0x1000001, |
119 |
root 0x76b, subw 0x0, time 2031966946, (74,286), root:(890,522), |
120 |
state 0x10, keycode 81 (keysym 0xffb9, KP_9), same_screen YES, |
121 |
XLookupString gives 1 bytes: (39) "9" |
122 |
XmbLookupString gives 1 bytes: (39) "9" |
123 |
XFilterEvent returns: False |
124 |
|
125 |
KeyRelease event, serial 38, synthetic NO, window 0x1000001, |
126 |
root 0x76b, subw 0x0, time 2031967074, (74,286), root:(890,522), |
127 |
state 0x10, keycode 81 (keysym 0xffb9, KP_9), same_screen YES, |
128 |
XLookupString gives 1 bytes: (39) "9" |
129 |
XFilterEvent returns: False |
130 |
|
131 |
|
132 |
-- |
133 |
Walter Dnes <waltdnes@××××××××.org> |
134 |
I don't run "desktop environments"; I run useful applications |