Parent Directory | Revision Log
Merged new keysym-based keyboard handling (from alt. CVS repos)
1 | astrand | 66 | include modifiers |
2 | |||
3 | # | ||
4 | # Top row | ||
5 | # | ||
6 | 1 0x2 | ||
7 | 2 0x3 | ||
8 | 3 0x4 | ||
9 | 4 0x5 | ||
10 | 5 0x6 | ||
11 | 6 0x7 | ||
12 | 7 0x8 | ||
13 | 8 0x9 | ||
14 | 9 0xa | ||
15 | 0 0xb | ||
16 | BackSpace 0xe | ||
17 | |||
18 | # | ||
19 | # QWERTY first row | ||
20 | # | ||
21 | Tab 0xf | ||
22 | q 0x10 addupper | ||
23 | w 0x11 addupper | ||
24 | e 0x12 addupper | ||
25 | r 0x13 addupper | ||
26 | t 0x14 addupper | ||
27 | y 0x15 addupper | ||
28 | u 0x16 addupper | ||
29 | i 0x17 addupper | ||
30 | o 0x18 addupper | ||
31 | p 0x19 addupper | ||
32 | |||
33 | # | ||
34 | # QWERTY second row | ||
35 | # | ||
36 | a 0x1e addupper | ||
37 | s 0x1f addupper | ||
38 | d 0x20 addupper | ||
39 | f 0x21 addupper | ||
40 | g 0x22 addupper | ||
41 | h 0x23 addupper | ||
42 | j 0x24 addupper | ||
43 | k 0x25 addupper | ||
44 | l 0x26 addupper | ||
45 | Return 0x1c | ||
46 | |||
47 | # | ||
48 | # QWERTY third row | ||
49 | # | ||
50 | z 0x2c addupper | ||
51 | x 0x2d addupper | ||
52 | c 0x2e addupper | ||
53 | v 0x2f addupper | ||
54 | b 0x30 addupper | ||
55 | n 0x31 addupper | ||
56 | m 0x32 addupper | ||
57 | |||
58 | space 0x39 | ||
59 | |||
60 | # | ||
61 | # Esc and Function keys | ||
62 | # | ||
63 | Escape 0x1 | ||
64 | F1 0x3b | ||
65 | F2 0x3c | ||
66 | F3 0x3d | ||
67 | F4 0x3e | ||
68 | F5 0x3f | ||
69 | F6 0x40 | ||
70 | F7 0x41 | ||
71 | F8 0x42 | ||
72 | F9 0x43 | ||
73 | F10 0x44 | ||
74 | F11 0x57 | ||
75 | F12 0x58 | ||
76 | |||
77 | # Printscreen, Scrollock and Pause | ||
78 | # Printscreen really requires four scancodes (0xe0, 0x2a, 0xe0, 0x37), | ||
79 | # but (0xe0, 0x37) seems to work. | ||
80 | Print 0xb7 | ||
81 | Scroll_Lock 0x46 | ||
82 | # Pause requires five scancodes. TBD. | ||
83 | |||
84 | # | ||
85 | # Insert - PgDown | ||
86 | # | ||
87 | Insert 0xd2 | ||
88 | Delete 0xd3 | ||
89 | Home 0xc7 | ||
90 | End 0xcf | ||
91 | Page_Up 0xc9 | ||
92 | Page_Down 0xd1 | ||
93 | |||
94 | # | ||
95 | # Arrow keys | ||
96 | # | ||
97 | Left 0xcb | ||
98 | Up 0xc8 | ||
99 | Down 0xd0 | ||
100 | Right 0xcd | ||
101 | |||
102 | # | ||
103 | # Numpad | ||
104 | # | ||
105 | KP_Divide 0xb5 | ||
106 | KP_Multiply 0x37 | ||
107 | KP_Subtract 0x4a | ||
108 | KP_Add 0x4e | ||
109 | KP_Enter 0x9c | ||
110 | KP_Decimal 0x33 | ||
111 | |||
112 | KP_0 0x52 numlock | ||
113 | KP_Insert 0x52 | ||
114 | |||
115 | KP_1 0x4f numlock | ||
116 | KP_End 0x4f | ||
117 | |||
118 | KP_2 0x50 numlock | ||
119 | KP_Down 0x50 | ||
120 | |||
121 | KP_3 0x51 numlock | ||
122 | KP_Page_Down 0x51 | ||
123 | |||
124 | KP_4 0x4b numlock | ||
125 | KP_Left 0x4b | ||
126 | |||
127 | KP_5 0x4c numlock | ||
128 | |||
129 | KP_6 0x4d numlock | ||
130 | KP_Right 0x4d | ||
131 | |||
132 | KP_7 0x47 numlock | ||
133 | KP_Home 0x47 | ||
134 | |||
135 | KP_8 0x48 numlock | ||
136 | KP_Up 0x48 | ||
137 | |||
138 | KP_9 0x49 numlock | ||
139 | KP_Page_Up 0x49 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |