1 # CVS: Last edit by $Author$ on $Date$
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",
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
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.
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".
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.
27 # See "main-ibm.c" and "main-dos.c" and "main-win.c" for more info.
32 # Macro Trigger configuration
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.
38 # If <trigger template> is null string, all trigger difinition will be cleared.
40 T:&x#:CSA:control-:shift-:alt-
42 # T:<trigger name>:<keycode>:<keycode with shiftkey>
43 # '\' in <trigger name> is escape character.
45 # These keycodes are actually direct keyboard scan code taken from the 'dinput.h'.
47 ?:[EQU $KEYBOARD JAPAN]
48 # For Japanese keyboard.
78 # Common keycodes (except NEC PC-98x1)
80 ?:[NOT [EQU $KEYBOARD NEC98]]
164 T:Hiragana_Katakana:70
217 ######################
220 ?:[EQU $KEYBOARD NEC98]
317 T:Hiragana_Katakana:72
320 ?:[NOT [EQU $KEYBOARD NEC98]]
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).
339 # Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
389 # Shift + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
439 # Control + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)
489 # Control + Keypad (/,*,7,8,9,-,4,5,6,+,1,2,3,0,.)