OSDN Git Service

hengband 1.0.8 fix2
[hengband/hengband.git] / lib / pref / pref-win.prf
1 # CVS: Last edit by $Author$ on $Date$
2 # File: pref-ibm.prf
3
4 #
5 # This file is used by Angband (when it was compiled using "main-ibm.c"
6 # or "main-dos.c" or "main-win.c") to specify various "user preferences",
7 # including "macros".
8 #
9 # This file defines some basic macros, which allow the use of the "keypad",
10 # alone, and with the shift and/or control modifier keys.  All "special"
11 # keys are translated by "main-ibm.c" (or "main-win.c") into special "macro
12 # triggers" of the encoded form "^_MMMxSS\r", where the "modifier" flags are
13 # stored in "MMM", and the two digit hexidecimal scan code of the keypress is
14 # stored in "SS".
15 #
16 # The "main-ibm.prf" and "main-dos.prf" files may not be able to recognize
17 # the "/" and "*" keys on the keypad, because it mistakenly classifies the
18 # "0x35" and "0x37" codes as the keycodes of "normal" keys.
19 #
20 # The "main-win.prf" file should not be using the final "control + keypad"
21 # section in this file, it was created for "main-ibm.c" and "main-dos.c".
22 #
23 # The "main-win.prf" file may actually send the "ascii" equivalent of some
24 # keypad keys after the keypad key itself, especially if "numlock" is down,
25 # which may cause problems.  Or it may not, it is hard to tell.  This is bad.
26 #
27 # See "main-ibm.c" and "main-dos.c" and "main-win.c" for more info.
28 #
29
30
31 #
32 # Macro Trigger configuration
33 #
34 # T:<trigger template>:<modifiers>:<modifier name1>:<modifier name2>:....
35 # '&' in <trigger template> specifies location of modifier character.
36 # '#' in <trigger template> specifies location of key code.
37 #
38 # If <trigger template> is null string, all trigger difinition will be cleared.
39
40 T:&x#:CSA:control-:shift-:alt-
41
42 # T:<trigger name>:<keycode>:<keycode with shiftkey>
43 # '\' in <trigger name> is escape character.
44
45 # These keycodes are actually direct keyboard scan code taken from the 'dinput.h'.
46
47 ?:[EQU $KEYBOARD JAPAN]
48 # For Japanese keyboard.
49 T:-:0C
50 T:^:0D
51 T:@:1A
52 T:[:1B
53 T:;:27
54 T:\::28
55 T:]:2B
56 T:,:33
57 T:.:34
58 T:\/:35
59 T:_:73
60 ?:1
61
62 ?:[EQU $KEYBOARD 0]
63 # For US keyboard.
64 T:-:0C
65 T:=:0D
66 T:[:1A
67 T:]:1B
68 T:;:27
69 T:\':28
70 T:`:29
71 T:\\:2B
72 T:,:33
73 T:.:34
74 T:\/:35
75 ?:1
76
77 ############
78 # Common keycodes (except NEC PC-98x1)
79
80 ?:[NOT [EQU $KEYBOARD NEC98]]
81 T:1:02
82 T:2:03
83 T:3:04
84 T:4:05
85 T:5:06
86 T:6:07
87 T:7:08
88 T:8:09
89 T:9:0A
90 T:0:0B
91 T:Backspace:0E
92 T:Q:10
93 T:W:11
94 T:E:12
95 T:R:13
96 T:T:14
97 T:Y:15
98 T:U:16
99 T:I:17
100 T:O:18
101 T:P:19
102 T:Enter:1C
103 T:A:1E
104 T:S:1F
105 T:D:20
106 T:F:21
107 T:G:22
108 T:H:23
109 T:J:24
110 T:K:25
111 T:L:26
112 T:Zenkaku_Hankaku:29
113 T:Z:2C
114 T:X:2D
115 T:C:2E
116 T:V:2F
117 T:B:30
118 T:N:31
119 T:M:32
120 T:Multiply:37
121 T:CapsLock:3A
122 T:F1:3B
123 T:F2:3C
124 T:F3:3D
125 T:F4:3E
126 T:F5:3F
127 T:F6:40
128 T:F7:41
129 T:F8:42
130 T:F9:43
131 T:F10:44
132 T:Numlock:45
133 T:Scroll:46
134 #T:KP_7:47
135 T:Home:47
136 #T:KP_8:48
137 T:Up:48
138 #T:KP_9:49
139 T:Page_UP:49
140 T:Subtract:4A
141 #T:KP_4:4B
142 T:Left:4B
143 T:KP_5:4C
144 #T:KP_6:4D
145 T:Right:4D
146 T:Add:4E
147 #T:KP_1:4F
148 T:End:4F
149 #T:KP_2:50
150 T:Down:50
151 #T:KP_3:51
152 T:Page_DOWN:51
153 #T:KP_0:52
154 T:Insert:52
155 #T:Decimal:53
156 T:Delete:53
157 T:Oem_102:56
158 T:F11:57
159 T:F12:58
160 T:Menu:5D
161 T:F13:64
162 T:F14:65
163 T:F15:66
164 T:Hiragana_Katakana:70
165 T:Abnt_C1:73
166 T:Henkan:79
167 T:Muhenkan:7B
168 T:Yen:7D
169 T:Abnt_C2:7E
170 T:KP_equals:8D
171 T:Prevtrack:90
172 T:Kanji:94
173 T:Stop:95
174 T:Ax:96
175 T:Unlabeled:97
176 T:Nexttrack:99
177 T:KP_enter:9C
178 T:Mute:A0
179 T:Calculator:A1
180 T:Playpause:A2
181 T:Mediastop:A4
182 T:Volumedown:AE
183 T:Volumeup:B0
184 T:Webhome:B2
185 T:KP_comma:B3
186 T:Divide:B5
187 T:Sysrq:B7
188 T:Pause:C5
189 #T:Home:C7
190 #T:Up:C8
191 #T:Prior:C9
192 #T:Left:CB
193 #T:Right:CD
194 #T:End:CF
195 #T:Down:D0
196 #T:Next:D1
197 #T:Insert:D2
198 #T:Delete:D3
199 T:Lwin:DB
200 T:Rwin:DC
201 T:Apps:DD
202 T:Power:DE
203 T:Sleep:DF
204 T:Wake:E3
205 T:Websearch:E5
206 T:Webfavorites:E6
207 T:Webrefresh:E7
208 T:Webstop:E8
209 T:Webforward:E9
210 T:Webback:EA
211 T:Mycomputer:EB
212 T:Mail:EC
213 T:Mediaselect:ED
214 ?:1
215
216
217 ######################
218 # For NEC PC-98x1
219
220 ?:[EQU $KEYBOARD NEC98]
221 T:1:01
222 T:2:02
223 T:3:03
224 T:4:04
225 T:5:05
226 T:6:06
227 T:7:07
228 T:8:08
229 T:9:09
230 T:0:0A
231 T:-:0B
232 T:^:0C
233 T:Yen:0D
234 T:Backspace:0E
235 T:Q:10
236 T:W:11
237 T:E:12
238 T:R:13
239 T:T:14
240 T:Y:15
241 T:U:16
242 T:I:17
243 T:O:18
244 T:P:19
245 T:@:1a
246 T:[:1b
247 T:Enter:1C
248 T:A:1D
249 T:S:1E
250 T:D:1F
251 T:F:20
252 T:G:21
253 T:H:22
254 T:J:23
255 T:K:24
256 T:L:25
257 T:;:26
258 T:\::27
259 T:[:28
260 T:Z:29
261 T:X:2A
262 T:C:2B
263 T:V:2C
264 T:B:2D
265 T:N:2E
266 T:M:2F
267 T:,:30
268 T:.:31
269 T:\/:32
270 T:_:33
271 T:Henkan:35
272 T:Page_down:36
273 T:Page_up:37
274 T:Insert:38
275 T:Delete:39
276 T:Up:3A
277 T:Left:3B
278 T:Right:3C
279 T:Down:3D
280 T:Home:3E
281 T:End:3F
282 T:Subtract:40
283 T:Divide:41
284 T:KP_7:42
285 T:KP_8:43
286 T:KP_9:44
287 T:Multiply:45
288 T:KP_4:46
289 T:KP_5:47
290 T:KP_6:48
291 T:Add:49
292 T:KP_1:4A
293 T:KP_2:4B
294 T:KP_3:4C
295 T:Equal:4D
296 T:KP_0:4E
297 T:KP_comma:4F
298 T:Decimal:50
299 T:Muhenkan:51
300 T:F11:52
301 T:F12:53
302 T:F13:54
303 T:F14:55
304 T:F15:56
305 T:Pause:60
306 T:F1:62
307 T:F2:63
308 T:F3:64
309 T:F4:65
310 T:F5:66
311 T:F6:67
312 T:F7:68
313 T:F8:69
314 T:F9:6A
315 T:F10:6B
316 T:CapsLock:71
317 T:Hiragana_Katakana:72
318 T:Menu:79
319
320 ?:[NOT [EQU $KEYBOARD NEC98]]
321
322
323 #
324 # Hack -- Some foreign keyboards have a special key on the keyboard, which
325 # is used to generate the "<", ">", and "|" keys (alone, shifted, alt-ed).
326 #
327
328 A:<
329 P:^_x56\r
330
331 A:>
332 P:^_Sx56\r
333
334 A:|
335 P:^_Ax56\r
336
337
338 #
339 # Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
340 #
341
342 A:/
343 P:^_x35\r
344
345 A:*
346 P:^_x37\r
347
348 A:7
349 P:^_x47\r
350
351 A:8
352 P:^_x48\r
353
354 A:9
355 P:^_x49\r
356
357 A:-
358 P:^_x4A\r
359
360 A:4
361 P:^_x4B\r
362
363 A:5
364 P:^_x4C\r
365
366 A:6
367 P:^_x4D\r
368
369 A:+
370 P:^_x4E\r
371
372 A:1
373 P:^_x4F\r
374
375 A:2
376 P:^_x50\r
377
378 A:3
379 P:^_x51\r
380
381 A:0
382 P:^_x52\r
383
384 A:.
385 P:^_x53\r
386
387
388 #
389 # Shift + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
390 #
391
392 A:\e\e\e
393 P:^_Sx35\r
394
395 A:\e\e\e
396 P:^_Sx37\r
397
398 A:\e\e\\.7
399 P:^_Sx47\r
400
401 A:\e\e\\.8
402 P:^_Sx48\r
403
404 A:\e\e\\.9
405 P:^_Sx49\r
406
407 A:\e\e\e
408 P:^_Sx4A\r
409
410 A:\e\e\\.4
411 P:^_Sx4B\r
412
413 A:\e\e\\.5
414 P:^_Sx4C\r
415
416 A:\e\e\\.6
417 P:^_Sx4D\r
418
419 A:\e\e\e
420 P:^_Sx4E\r
421
422 A:\e\e\\.1
423 P:^_Sx4F\r
424
425 A:\e\e\\.2
426 P:^_Sx50\r
427
428 A:\e\e\\.3
429 P:^_Sx51\r
430
431 A:\e\e\e
432 P:^_Sx52\r
433
434 A:\e\e\e
435 P:^_Sx53\r
436
437
438 #
439 # Control + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
440 #
441
442 A:\e\e\e
443 P:^_Cx35\r
444
445 A:\e\e\e
446 P:^_Cx37\r
447
448 A:\e\e\\+7
449 P:^_Cx47\r
450
451 A:\e\e\\+8
452 P:^_Cx48\r
453
454 A:\e\e\\+9
455 P:^_Cx49\r
456
457 A:\e\e\e
458 P:^_Cx4A\r
459
460 A:\e\e\\+4
461 P:^_Cx4B\r
462
463 A:\e\e\\+5
464 P:^_Cx4C\r
465
466 A:\e\e\\+6
467 P:^_Cx4D\r
468
469 A:\e\e\e
470 P:^_Cx4E\r
471
472 A:\e\e\\+1
473 P:^_Cx4F\r
474
475 A:\e\e\\+2
476 P:^_Cx50\r
477
478 A:\e\e\\+3
479 P:^_Cx51\r
480
481 A:\e\e\e
482 P:^_Cx52\r
483
484 A:\e\e\e
485 P:^_Cx53\r
486
487
488 #
489 # Control + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
490 #
491
492 A:\e\e\e
493 P:^_Cx95\r
494
495 A:\e\e\e
496 P:^_Cx96\r
497
498 A:\e\e\\+7
499 P:^_Cx77\r
500
501 A:\e\e\\+8
502 P:^_Cx8D\r
503
504 A:\e\e\\+9
505 P:^_Cx84\r
506
507 A:\e\e\e
508 P:^_Cx8E\r
509
510 A:\e\e\\+4
511 P:^_Cx73\r
512
513 A:\e\e\\+5
514 P:^_Cx8F\r
515
516 A:\e\e\\+6
517 P:^_Cx74\r
518
519 A:\e\e\e
520 P:^_Cx90\r
521
522 A:\e\e\\+1
523 P:^_Cx75\r
524
525 A:\e\e\\+2
526 P:^_Cx91\r
527
528 A:\e\e\\+3
529 P:^_Cx76\r
530
531 A:\e\e\e
532 P:^_Cx92\r
533
534 A:\e\e\e
535 P:^_Cx93\r
536