Angband 3.0.9b.
[angband.git] / lib / pref / pref-win.prf
blob49343be413acb9454e25c4a947ccadf71e3cf72d
1 # File: pref-win.prf
4 # This file is used by Angband (when it was compiled using "main-win.c")
5 # to specify various "user preferences", including "macros".
7 # This file defines some basic macros, which allow the use of the "keypad",
8 # alone, and with the shift and/or control modifier keys.  All "special"
9 # keys are translated by "main-ibm.c" (or "main-win.c") into special "macro
10 # triggers" of the encoded form "^_MMMxSS\r", where the "modifier" flags are
11 # stored in "MMM", and the two digit hexidecimal scan code of the keypress is
12 # stored in "SS".
14 # The "main-win.prf" file should not be using the final "control + keypad"
15 # section in this file, it was created for "main-ibm.c" and "main-dos.c".
17 # The "main-win.prf" file may actually send the "ascii" equivalent of some
18 # keypad keys after the keypad key itself, especially if "numlock" is down,
19 # which may cause problems.  Or it may not, it is hard to tell.  This is bad.
21 # See "main-win.c" for more info.
26 # Macro Trigger configuration
28 # T:<trigger template>:<modifiers>:<modifier name1>:<modifier name2>:....
29 # '&' in <trigger template> specifies location of modifier character.
30 # '#' in <trigger template> specifies location of key code.
32 # If <trigger template> is null string, all trigger difinition will be cleared.
34 T:&x#:CSA:control-:shift-:alt-
36 # T:<trigger name>:<keycode>:<keycode with shiftkey>
37 # '\' in <trigger name> is escape character.
39 # These keycodes are actually direct keyboard scan code taken from the 'dinput.h'.
41 T:-:0C
42 T:=:0D
43 T:[:1A
44 T:]:1B
45 T:;:27
46 T:\':28
47 T:`:29
48 T:\\:2B
49 T:,:33
50 T:.:34
51 T:\/:35
52 T:1:02
53 T:2:03
54 T:3:04
55 T:4:05
56 T:5:06
57 T:6:07
58 T:7:08
59 T:8:09
60 T:9:0A
61 T:0:0B
62 T:Backspace:0E
63 T:Q:10
64 T:W:11
65 T:E:12
66 T:R:13
67 T:T:14
68 T:Y:15
69 T:U:16
70 T:I:17
71 T:O:18
72 T:P:19
73 T:Enter:1C
74 T:A:1E
75 T:S:1F
76 T:D:20
77 T:F:21
78 T:G:22
79 T:H:23
80 T:J:24
81 T:K:25
82 T:L:26
83 T:Zenkaku_Hankaku:29
84 T:Z:2C
85 T:X:2D
86 T:C:2E
87 T:V:2F
88 T:B:30
89 T:N:31
90 T:M:32
91 T:KP_Multiply:37
92 T:CapsLock:3A
93 T:F1:3B
94 T:F2:3C
95 T:F3:3D
96 T:F4:3E
97 T:F5:3F
98 T:F6:40
99 T:F7:41
100 T:F8:42
101 T:F9:43
102 T:F10:44
103 T:Numlock:45
104 T:Scroll:46
105 #T:KP_7:47
106 T:Home:47
107 #T:KP_8:48
108 T:Up:48
109 #T:KP_9:49
110 T:Page_Up:49
111 T:KP_Subtract:4A
112 #T:KP_4:4B
113 T:Left:4B
114 T:KP_5:4C
115 #T:KP_6:4D
116 T:Right:4D
117 T:KP_Add:4E
118 #T:KP_1:4F
119 T:End:4F
120 #T:KP_2:50
121 T:Down:50
122 #T:KP_3:51
123 T:Page_Down:51
124 #T:KP_0:52
125 T:Insert:52
126 #T:KP_Decimal:53
127 T:Delete:53
128 T:Oem_102:56
129 T:F11:57
130 T:F12:58
131 T:Menu:5D
132 T:F13:64
133 T:F14:65
134 T:F15:66
135 T:Hiragana_Katakana:70
136 T:Abnt_C1:73
137 T:Henkan:79
138 T:Muhenkan:7B
139 T:Yen:7D
140 T:Abnt_C2:7E
141 T:KP_equals:8D
142 T:Prevtrack:90
143 T:Kanji:94
144 T:Stop:95
145 T:Ax:96
146 T:Unlabeled:97
147 T:Nexttrack:99
148 T:KP_Enter:9C
149 T:Mute:A0
150 T:Calculator:A1
151 T:Playpause:A2
152 T:Mediastop:A4
153 T:Volumedown:AE
154 T:Volumeup:B0
155 T:Webhome:B2
156 T:KP_Comma:B3
157 T:KP_Divide:B5
158 T:Sys_Req:B7
159 T:Pause:C5
160 #T:Home:C7
161 #T:Up:C8
162 #T:Prior:C9
163 #T:Left:CB
164 #T:Right:CD
165 #T:End:CF
166 #T:Down:D0
167 #T:Next:D1
168 #T:Insert:D2
169 #T:Delete:D3
170 T:Lwin:DB
171 T:Rwin:DC
172 T:Apps:DD
173 T:Power:DE
174 T:Sleep:DF
175 T:Wake:E3
176 T:Websearch:E5
177 T:Webfavorites:E6
178 T:Webrefresh:E7
179 T:Webstop:E8
180 T:Webforward:E9
181 T:Webback:EA
182 T:Mycomputer:EB
183 T:Mail:EC
184 T:Mediaselect:ED
188 # Hack -- Some foreign keyboards have a special key on the keyboard, which
189 # is used to generate the "<", ">", and "|" keys (alone, shifted, alt-ed).
193 P:^_x56\r
196 P:^_Sx56\r
199 P:^_Ax56\r
203 # Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
207 P:^_x35\r
210 P:^_x37\r
213 P:^_x47\r
215 A:\x8D
216 P:^_x48\r
219 P:^_x49\r
222 P:^_x4A\r
224 A:\x8B
225 P:^_x4B\r
228 P:^_x4C\r
230 A:\x8C
231 P:^_x4D\r
234 P:^_x4E\r
237 P:^_x4F\r
239 A:\x8A
240 P:^_x50\r
243 P:^_x51\r
246 P:^_x52\r
249 P:^_x53\r
253 # Shift + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
256 A:\a
257 P:^_Sx35\r
259 A:\a
260 P:^_Sx37\r
262 A:\a\\.7
263 P:^_Sx47\r
265 A:\a\\.8
266 P:^_Sx48\r
268 A:\a\\.9
269 P:^_Sx49\r
271 A:\a
272 P:^_Sx4A\r
274 A:\a\\.4
275 P:^_Sx4B\r
277 A:\a\\.5
278 P:^_Sx4C\r
280 A:\a\\.6
281 P:^_Sx4D\r
283 A:\a
284 P:^_Sx4E\r
286 A:\a\\.1
287 P:^_Sx4F\r
289 A:\a\\.2
290 P:^_Sx50\r
292 A:\a\\.3
293 P:^_Sx51\r
295 A:\a
296 P:^_Sx52\r
298 A:\a
299 P:^_Sx53\r
303 # Control + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
306 A:\a
307 P:^_Cx35\r
309 A:\a
310 P:^_Cx37\r
312 A:\a\\+7
313 P:^_Cx47\r
315 A:\a\\+8
316 P:^_Cx48\r
318 A:\a\\+9
319 P:^_Cx49\r
321 A:\a
322 P:^_Cx4A\r
324 A:\a\\+4
325 P:^_Cx4B\r
327 A:\a\\+5
328 P:^_Cx4C\r
330 A:\a\\+6
331 P:^_Cx4D\r
333 A:\a
334 P:^_Cx4E\r
336 A:\a\\+1
337 P:^_Cx4F\r
339 A:\a\\+2
340 P:^_Cx50\r
342 A:\a\\+3
343 P:^_Cx51\r
345 A:\a
346 P:^_Cx52\r
348 A:\a
349 P:^_Cx53\r
353 # Control + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
356 A:\a
357 P:^_Cx95\r
359 A:\a
360 P:^_Cx96\r
362 A:\a\\+7
363 P:^_Cx77\r
365 A:\a\\+8
366 P:^_Cx8D\r
368 A:\a\\+9
369 P:^_Cx84\r
371 A:\a
372 P:^_Cx8E\r
374 A:\a\\+4
375 P:^_Cx73\r
377 A:\a\\+5
378 P:^_Cx8F\r
380 A:\a\\+6
381 P:^_Cx74\r
383 A:\a
384 P:^_Cx90\r
386 A:\a\\+1
387 P:^_Cx75\r
389 A:\a\\+2
390 P:^_Cx91\r
392 A:\a\\+3
393 P:^_Cx76\r
395 A:\a
396 P:^_Cx92\r
398 A:\a
399 P:^_Cx93\r