1 |
gbeauche |
1.1 |
# /usr/share/BasiliskII/keycodes |
2 |
|
|
# |
3 |
|
|
# Basilisk II (C) 1997-2004 Christian Bauer |
4 |
|
|
# |
5 |
|
|
# This file is used to translate the (server-specific) scancodes to |
6 |
|
|
# Mac keycodes depending on the window server being used. |
7 |
|
|
# |
8 |
|
|
# The format of this file is as follows: |
9 |
|
|
# |
10 |
|
|
# sdl <driver string> |
11 |
|
|
# <SDL scancode> <Mac keycode> |
12 |
|
|
# <SDL scancode> <Mac keycode> |
13 |
|
|
# <SDL scancode> <Mac keycode> |
14 |
|
|
# ... |
15 |
|
|
# sdl <driver string> |
16 |
|
|
# <SDL scancode> <Mac keycode> |
17 |
|
|
# <SDL scancode> <Mac keycode> |
18 |
|
|
# ... |
19 |
|
|
# |
20 |
|
|
# The "driver string" must match the first part of the SDL driver vendor |
21 |
|
|
# description as reported by SDL_VideoDriverName(). If a match is found, |
22 |
|
|
# the keycode translation table is constructed from the following |
23 |
|
|
# lines. Each line contains an SDL scancode followed by its associated |
24 |
|
|
# Mac keycode. Both keycodes have to be given in decimal. Lines |
25 |
|
|
# beginning with "#" or ";" are treated as comments and ignored. |
26 |
|
|
# |
27 |
|
|
|
28 |
|
|
# |
29 |
|
|
# X11 server |
30 |
|
|
# |
31 |
|
|
sdl x11 |
32 |
|
|
sdl dga |
33 |
|
|
9 53 # Esc |
34 |
|
|
67 122 # F1 |
35 |
|
|
68 120 # F2 |
36 |
|
|
69 99 # F3 |
37 |
|
|
70 118 # F4 |
38 |
|
|
71 96 # F5 |
39 |
|
|
72 97 # F6 |
40 |
|
|
73 98 # F7 |
41 |
|
|
74 100 # F8 |
42 |
|
|
75 101 # F9 |
43 |
|
|
76 109 # F10 |
44 |
|
|
95 103 # F11 |
45 |
|
|
96 111 # F12 |
46 |
|
|
111 105 # PrintScrn |
47 |
|
|
78 107 # Scroll Lock |
48 |
|
|
110 113 # Pause |
49 |
|
|
49 10 # ` |
50 |
|
|
10 18 # 1 |
51 |
|
|
11 19 # 2 |
52 |
|
|
12 20 # 3 |
53 |
|
|
13 21 # 4 |
54 |
|
|
14 23 # 5 |
55 |
|
|
15 22 # 6 |
56 |
|
|
16 26 # 7 |
57 |
|
|
17 28 # 8 |
58 |
|
|
18 25 # 9 |
59 |
|
|
19 29 # 0 |
60 |
|
|
20 27 # - |
61 |
|
|
21 24 # = |
62 |
|
|
22 51 # Backspace |
63 |
|
|
106 114 # Insert |
64 |
|
|
97 115 # Home |
65 |
|
|
99 116 # Page Up |
66 |
|
|
77 71 # Num Lock |
67 |
|
|
112 75 # KP / |
68 |
|
|
63 67 # KP * |
69 |
|
|
82 78 # KP - |
70 |
|
|
23 48 # Tab |
71 |
|
|
24 12 # Q |
72 |
|
|
25 13 # W |
73 |
|
|
26 14 # E |
74 |
|
|
27 15 # R |
75 |
|
|
28 17 # T |
76 |
|
|
29 16 # Y |
77 |
|
|
30 32 # U |
78 |
|
|
31 34 # I |
79 |
|
|
32 31 # O |
80 |
|
|
33 35 # P |
81 |
|
|
34 33 # [ |
82 |
|
|
35 30 # ] |
83 |
|
|
36 36 # Return |
84 |
|
|
107 117 # Delete |
85 |
|
|
103 119 # End |
86 |
|
|
105 121 # Page Down |
87 |
|
|
79 89 # KP 7 |
88 |
|
|
80 91 # KP 8 |
89 |
|
|
81 92 # KP 9 |
90 |
|
|
86 69 # KP + |
91 |
|
|
66 57 # Caps Lock |
92 |
|
|
38 0 # A |
93 |
|
|
39 1 # S |
94 |
|
|
40 2 # D |
95 |
|
|
41 3 # F |
96 |
|
|
42 5 # G |
97 |
|
|
43 4 # H |
98 |
|
|
44 38 # J |
99 |
|
|
45 40 # K |
100 |
|
|
46 37 # L |
101 |
|
|
47 41 # ; |
102 |
|
|
48 39 # ' |
103 |
|
|
83 86 # KP 4 |
104 |
|
|
84 87 # KP 5 |
105 |
|
|
85 88 # KP 6 |
106 |
|
|
50 56 # Shift Left |
107 |
|
|
94 50 # International |
108 |
|
|
52 6 # Z |
109 |
|
|
53 7 # X |
110 |
|
|
54 8 # C |
111 |
|
|
55 9 # V |
112 |
|
|
56 11 # B |
113 |
|
|
57 45 # N |
114 |
|
|
58 46 # M |
115 |
|
|
59 43 # , |
116 |
|
|
60 47 # . |
117 |
|
|
61 44 # / |
118 |
|
|
62 56 # Shift Right |
119 |
|
|
51 42 # \ |
120 |
|
|
98 62 # Cursor Up |
121 |
|
|
87 83 # KP 1 |
122 |
|
|
88 84 # KP 2 |
123 |
|
|
89 85 # KP 3 |
124 |
|
|
108 76 # KP Enter |
125 |
|
|
37 54 # Ctrl Left |
126 |
|
|
115 58 # Logo Left (-> Option) |
127 |
|
|
64 55 # Alt Left (-> Command) |
128 |
|
|
65 49 # Space |
129 |
|
|
113 55 # Alt Right (-> Command) |
130 |
|
|
116 58 # Logo Right (-> Option) |
131 |
|
|
117 50 # Menu (-> International) |
132 |
|
|
109 54 # Ctrl Right |
133 |
|
|
100 59 # Cursor Left |
134 |
|
|
104 61 # Cursor Down |
135 |
|
|
102 60 # Cursor Right |
136 |
|
|
90 82 # KP 0 |
137 |
|
|
91 65 # KP . |
138 |
|
|
|
139 |
|
|
# |
140 |
|
|
# Quartz (1:1 translation actually) |
141 |
|
|
# |
142 |
|
|
sdl Quartz |
143 |
|
|
53 53 # Esc |
144 |
|
|
122 122 # F1 |
145 |
|
|
120 120 # F2 |
146 |
|
|
99 99 # F3 |
147 |
|
|
118 118 # F4 |
148 |
|
|
96 96 # F5 |
149 |
|
|
97 97 # F6 |
150 |
|
|
98 98 # F7 |
151 |
|
|
100 100 # F8 |
152 |
|
|
101 101 # F9 |
153 |
|
|
109 109 # F10 |
154 |
|
|
103 103 # F11 |
155 |
|
|
111 111 # F12 |
156 |
|
|
105 105 # F13/PrintScrn |
157 |
|
|
107 107 # F14/Scroll Lock |
158 |
|
|
113 113 # F15/Pause |
159 |
|
|
10 10 # ` |
160 |
|
|
18 18 # 1 |
161 |
|
|
19 19 # 2 |
162 |
|
|
20 20 # 3 |
163 |
|
|
21 21 # 4 |
164 |
|
|
23 23 # 5 |
165 |
|
|
22 22 # 6 |
166 |
|
|
26 26 # 7 |
167 |
|
|
28 28 # 8 |
168 |
|
|
25 25 # 9 |
169 |
|
|
29 29 # 0 |
170 |
|
|
27 27 # - |
171 |
|
|
24 24 # = |
172 |
|
|
51 51 # Backspace |
173 |
|
|
114 114 # Help/Insert |
174 |
|
|
115 115 # Home |
175 |
|
|
116 116 # Page Up |
176 |
|
|
71 71 # Num Lock |
177 |
|
|
81 81 # KP = |
178 |
|
|
75 75 # KP / |
179 |
|
|
67 67 # KP * |
180 |
|
|
48 48 # Tab |
181 |
|
|
12 12 # Q |
182 |
|
|
13 13 # W |
183 |
|
|
14 14 # E |
184 |
|
|
15 15 # R |
185 |
|
|
17 17 # T |
186 |
|
|
16 16 # Y |
187 |
|
|
32 32 # U |
188 |
|
|
34 34 # I |
189 |
|
|
31 31 # O |
190 |
|
|
35 35 # P |
191 |
|
|
33 33 # [ |
192 |
|
|
30 30 # ] |
193 |
|
|
36 36 # Return |
194 |
|
|
117 117 # Delete |
195 |
|
|
119 119 # End |
196 |
|
|
121 121 # Page Down |
197 |
|
|
89 89 # KP 7 |
198 |
|
|
91 91 # KP 8 |
199 |
|
|
92 92 # KP 9 |
200 |
|
|
78 78 # KP - |
201 |
|
|
57 57 # Caps Lock |
202 |
|
|
0 0 # A |
203 |
|
|
1 1 # S |
204 |
|
|
2 2 # D |
205 |
|
|
3 3 # F |
206 |
|
|
5 5 # G |
207 |
|
|
4 4 # H |
208 |
|
|
38 38 # J |
209 |
|
|
40 40 # K |
210 |
|
|
37 37 # L |
211 |
|
|
41 41 # ; |
212 |
|
|
39 39 # ' |
213 |
|
|
42 42 # \ |
214 |
|
|
86 86 # KP 4 |
215 |
|
|
87 87 # KP 5 |
216 |
|
|
88 88 # KP 6 |
217 |
|
|
69 69 # KP + |
218 |
|
|
56 56 # Shift |
219 |
|
|
50 50 # International |
220 |
|
|
6 6 # Z |
221 |
|
|
7 7 # X |
222 |
|
|
8 8 # C |
223 |
|
|
9 9 # V |
224 |
|
|
11 11 # B |
225 |
|
|
45 45 # N |
226 |
|
|
46 46 # M |
227 |
|
|
43 43 # , |
228 |
|
|
47 47 # . |
229 |
|
|
44 44 # / |
230 |
|
|
126 62 # Cursor Up |
231 |
|
|
123 59 # Cursor Left |
232 |
|
|
125 61 # Cursor Down |
233 |
|
|
124 60 # Cursor Right |
234 |
|
|
83 83 # KP 1 |
235 |
|
|
84 84 # KP 2 |
236 |
|
|
85 85 # KP 3 |
237 |
|
|
76 76 # KP Enter |
238 |
|
|
54 54 # Ctrl |
239 |
|
|
58 58 # Option |
240 |
|
|
55 55 # Command |
241 |
|
|
54 54 # Ctrl Left |
242 |
|
|
49 49 # Space |
243 |
|
|
82 82 # KP 0 |
244 |
|
|
65 65 # KP . |